mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
parent
c0c78f1b70
commit
f7969b0920
83 changed files with 419 additions and 429 deletions
|
@ -35,7 +35,7 @@ class ArchiveIndexViewTests(TestCase):
|
|||
self.assertEqual(res.status_code, 200)
|
||||
self.assertEqual(list(res.context['date_list']), list(Book.objects.dates('pubdate', 'year', 'DESC')))
|
||||
self.assertEqual(list(res.context['thingies']), list(Book.objects.all()))
|
||||
self.assertFalse('latest' in res.context)
|
||||
self.assertNotIn('latest', res.context)
|
||||
self.assertTemplateUsed(res, 'generic_views/book_archive.html')
|
||||
|
||||
def test_empty_archive_view(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue