diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-10-28 12:02:56 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2014-11-03 11:56:37 -0500 |
commit | f7969b0920c403118656f6bfec58d6454d79ef1a (patch) | |
tree | 866df7de0524251323fef2b4262e672150d95f00 /tests/pagination | |
parent | c0c78f1b707f825eee974c65515a837f8cf46e66 (diff) | |
download | django-f7969b0920c403118656f6bfec58d6454d79ef1a.tar.gz |
Fixed #23620 -- Used more specific assertions in the Django test suite.
Diffstat (limited to 'tests/pagination')
-rw-r--r-- | tests/pagination/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index c2ad54c5ad..7f405cffaa 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -213,8 +213,8 @@ class PaginationTests(unittest.TestCase): eleven = 'abcdefghijk' page2 = Paginator(eleven, per_page=5, orphans=1).page(2) self.assertEqual(len(page2), 6) - self.assertTrue('k' in page2) - self.assertFalse('a' in page2) + self.assertIn('k', page2) + self.assertNotIn('a', page2) self.assertEqual(''.join(page2), 'fghijk') self.assertEqual(''.join(reversed(page2)), 'kjihgf') |