def setUp(self): self.admin_site = AdminSite() patch_admin(self.admin_site) self.factory = RequestFactory()
def test_patch_mixin_init(self, _mixin_init): """Test that patching an admin site calls _mixin_init.""" eq_(_mixin_init.called, False) admin_site = AdminSite() patch_admin(admin_site) eq_(_mixin_init.called, True)