diff options
Diffstat (limited to 'django/contrib/auth/tests/test_context_processors.py')
| -rw-r--r-- | django/contrib/auth/tests/test_context_processors.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/auth/tests/test_context_processors.py b/django/contrib/auth/tests/test_context_processors.py index 9de08bf96a..e0e75a947e 100644 --- a/django/contrib/auth/tests/test_context_processors.py +++ b/django/contrib/auth/tests/test_context_processors.py @@ -45,10 +45,10 @@ class PermWrapperTests(TestCase): """ perms = PermWrapper(MockUser()) # Works for modules and full permissions. - self.assertTrue('mockapp' in perms) - self.assertFalse('nonexisting' in perms) - self.assertTrue('mockapp.someperm' in perms) - self.assertFalse('mockapp.nonexisting' in perms) + self.assertIn('mockapp', perms) + self.assertNotIn('nonexisting', perms) + self.assertIn('mockapp.someperm', perms) + self.assertNotIn('mockapp.nonexisting', perms) def test_permlookupdict_in(self): """ |
