diff options
Diffstat (limited to 'tests/conditional_processing')
-rw-r--r-- | tests/conditional_processing/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conditional_processing/tests.py b/tests/conditional_processing/tests.py index 934ca5c4ec..72dd1dd48c 100644 --- a/tests/conditional_processing/tests.py +++ b/tests/conditional_processing/tests.py @@ -124,6 +124,11 @@ class ConditionalGet(TestCase): response = self.client.get('/condition/last_modified2/') self.assertFullResponse(response, check_etag=False) + def test_single_condition_head(self): + self.client.defaults['HTTP_IF_MODIFIED_SINCE'] = LAST_MODIFIED_STR + response = self.client.head('/condition/') + self.assertNotModified(response) + def test_invalid_etag(self): self.client.defaults['HTTP_IF_NONE_MATCH'] = r'"\"' response = self.client.get('/condition/etag/') |