Skip to content

Instantly share code, notes, and snippets.

@MahatiC
Created February 24, 2016 04:27
Show Gist options
  • Save MahatiC/912eb17858a0b1505ef0 to your computer and use it in GitHub Desktop.
Save MahatiC/912eb17858a0b1505ef0 to your computer and use it in GitHub Desktop.
diff --git a/test/functional/tests.py b/test/functional/tests.py
index 0615bf9..885e1de 100644
--- a/test/functional/tests.py
+++ b/test/functional/tests.py
@@ -1651,6 +1651,8 @@ class TestFile(Base):
hdrs = {'Range': range_string}
self.assertRaises(ResponseError, file_item.read, hdrs=hdrs)
self.assert_status(416)
+ self.assertEqual(file_item.read_md5(),
+ self.env.conn.response.getheader('etag'))
range_string = 'bytes=%d-%d' % (file_length - 1000, file_length + 2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment