(self)
| 30 | self.addCleanup(Site.objects.clear_cache) |
| 31 | |
| 32 | def test_site_manager(self): |
| 33 | # Make sure that get_current() does not return a deleted Site object. |
| 34 | s = Site.objects.get_current() |
| 35 | self.assertIsInstance(s, Site) |
| 36 | s.delete() |
| 37 | with self.assertRaises(ObjectDoesNotExist): |
| 38 | Site.objects.get_current() |
| 39 | |
| 40 | def test_site_cache(self): |
| 41 | # After updating a Site object (e.g. via the admin), we shouldn't |
nothing calls this directly
no test coverage detected