Ejemplo n.º 1
0
 def setUp(self):
     self.admin_site = AdminSite()
     patch_admin(self.admin_site)
     self.factory = RequestFactory()
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def setUp(self):
     self.admin_site = AdminSite()
     patch_admin(self.admin_site)
     self.factory = RequestFactory()