diff options
| author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
| commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
| tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/syndication_tests | |
| parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/syndication_tests')
| -rw-r--r-- | tests/syndication_tests/tests.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py index 60285efea7..f8948ac21d 100644 --- a/tests/syndication_tests/tests.py +++ b/tests/syndication_tests/tests.py @@ -283,7 +283,7 @@ class SyndicationFeedTest(FeedTestCase): def test_atom_feed_published_and_updated_elements(self): """ - Test that the published and updated elements are not + The published and updated elements are not the same and now adhere to RFC 4287. """ response = self.client.get('/syndication/atom/') @@ -315,7 +315,7 @@ class SyndicationFeedTest(FeedTestCase): def test_latest_post_date(self): """ - Test that both the published and updated dates are + Both the published and updated dates are considered when determining the latest post date. """ # this feed has a `published` element with the latest date @@ -370,7 +370,7 @@ class SyndicationFeedTest(FeedTestCase): def test_title_escaping(self): """ - Tests that titles are escaped correctly in RSS feeds. + Titles are escaped correctly in RSS feeds. """ response = self.client.get('/syndication/rss2/') doc = minidom.parseString(response.content) @@ -382,7 +382,7 @@ class SyndicationFeedTest(FeedTestCase): def test_naive_datetime_conversion(self): """ - Test that datetimes are correctly converted to the local time zone. + Datetimes are correctly converted to the local time zone. """ # Naive date times passed in get converted to the local time zone, so # check the received zone offset against the local offset. @@ -397,7 +397,7 @@ class SyndicationFeedTest(FeedTestCase): def test_aware_datetime_conversion(self): """ - Test that datetimes with timezones don't get trodden on. + Datetimes with timezones don't get trodden on. """ response = self.client.get('/syndication/aware-dates/') doc = minidom.parseString(response.content) @@ -425,7 +425,7 @@ class SyndicationFeedTest(FeedTestCase): def test_feed_url(self): """ - Test that the feed_url can be overridden. + The feed_url can be overridden. """ response = self.client.get('/syndication/feedurl/') doc = minidom.parseString(response.content) @@ -454,16 +454,15 @@ class SyndicationFeedTest(FeedTestCase): def test_item_link_error(self): """ - Test that an ImproperlyConfigured is raised if no link could be found - for the item(s). + An ImproperlyConfigured is raised if no link could be found for the + item(s). """ with self.assertRaises(ImproperlyConfigured): self.client.get('/syndication/articles/') def test_template_feed(self): """ - Test that the item title and description can be overridden with - templates. + The item title and description can be overridden with templates. """ response = self.client.get('/syndication/template/') doc = minidom.parseString(response.content) @@ -479,7 +478,7 @@ class SyndicationFeedTest(FeedTestCase): def test_template_context_feed(self): """ - Test that custom context data can be passed to templates for title + Custom context data can be passed to templates for title and description. """ response = self.client.get('/syndication/template_context/') @@ -495,7 +494,7 @@ class SyndicationFeedTest(FeedTestCase): def test_add_domain(self): """ - Test add_domain() prefixes domains onto the correct URLs. + add_domain() prefixes domains onto the correct URLs. """ self.assertEqual( views.add_domain('example.com', '/foo/?arg=value'), |
