self.assertContains(response, "foogroup")
self.assertContains(response, "1000")
+ def test_group_delete(self):
+ response = self.client.post('/admin/examples/ldapgroup/foogroup/delete/', {'yes': 'post'})
+ self.assertRedirects(response, '/admin/examples/ldapgroup/')
+
def test_group_search(self):
response = self.client.get('/admin/examples/ldapgroup/?q=foo')
self.assertContains(response, "Ldap groups")
response = self.client.get('/admin/examples/ldapuser/foouser/')
self.assertContains(response, "foouser")
self.assertContains(response, "2000")
+
+ def test_user_delete(self):
+ response = self.client.post('/admin/examples/ldapuser/foouser/delete/', {'yes': 'post'})
+ self.assertRedirects(response, '/admin/examples/ldapuser/')
+
super(Model, self).__init__(*args, **kwargs)
self.saved_pk = self.pk
+ def _collect_sub_objects(self, collector):
+ """
+ This private API seems to be called by the admin interface in django 1.2
+ """
+ pass
+
def build_rdn(self):
"""
Build the Relative Distinguished Name for this entry.