(self)
| 765 | cls.user3 = User.objects.create_user("test3", "test3@example.com", "test") |
| 766 | |
| 767 | def tearDown(self): |
| 768 | # The get_group_permissions test messes with ContentTypes, which will |
| 769 | # be cached; flush the cache to ensure there are no side effects |
| 770 | # Refs #14975, #14925 |
| 771 | ContentType.objects.clear_cache() |
| 772 | |
| 773 | def test_has_perm(self): |
| 774 | self.assertIs(self.user1.has_perm("perm", TestObj()), False) |
nothing calls this directly
no test coverage detected