diff options
| author | Denis Cornehl <syphar@fastmail.fm> | 2016-01-05 08:09:10 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-05 09:37:11 -0500 |
| commit | 186b6c61bfe85afa4d6bf213d04a28dd2853fed2 (patch) | |
| tree | e068a17145cf17f4eaf887ecfc84d39ab150ced6 /tests/utils_tests | |
| parent | d5b90c8e120687863c1d41cf92a4cdb11413ad7f (diff) | |
Fixed #26024 -- Fixed regression in ConditionalGetMiddleware ETag support.
Thanks Denis Cornehl for help with the patch.
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/test_http.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils_tests/test_http.py b/tests/utils_tests/test_http.py index f90486003a..6051818958 100644 --- a/tests/utils_tests/test_http.py +++ b/tests/utils_tests/test_http.py @@ -158,8 +158,10 @@ class ETagProcessingTests(unittest.TestCase): self.assertEqual(etags, ['', 'etag', 'e"t"ag', r'e\tag', 'weak']) def test_quoting(self): - quoted_etag = http.quote_etag(r'e\t"ag') + original_etag = r'e\t"ag' + quoted_etag = http.quote_etag(original_etag) self.assertEqual(quoted_etag, r'"e\\t\"ag"') + self.assertEqual(http.unquote_etag(quoted_etag), original_etag) class HttpDateProcessingTests(unittest.TestCase): |
