diff options
Diffstat (limited to 'tests/syndication_tests/tests.py')
| -rw-r--r-- | tests/syndication_tests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py index d9456ed618..b763bba6cb 100644 --- a/tests/syndication_tests/tests.py +++ b/tests/syndication_tests/tests.py @@ -421,14 +421,14 @@ class SyndicationFeedTest(FeedTestCase): Tests the Last-Modified header with naive publication dates. """ response = self.client.get('/syndication/naive-dates/') - self.assertEqual(response['Last-Modified'], 'Tue, 26 Mar 2013 01:00:00 GMT') + self.assertEqual(response.headers['Last-Modified'], 'Tue, 26 Mar 2013 01:00:00 GMT') def test_feed_last_modified_time(self): """ Tests the Last-Modified header with aware publication dates. """ response = self.client.get('/syndication/aware-dates/') - self.assertEqual(response['Last-Modified'], 'Mon, 25 Mar 2013 19:18:00 GMT') + self.assertEqual(response.headers['Last-Modified'], 'Mon, 25 Mar 2013 19:18:00 GMT') # No last-modified when feed has no item_pubdate response = self.client.get('/syndication/no_pubdate/') |
