implement and test bulk deletion
[matthijs/upstream/django-ldapdb.git] / examples / tests.py
index 465c857a50fcb18d9cfdff8e7a28d7f928bb372d..e1088520fb65afc7fbcc7859da6632ae15fc572a 100644 (file)
@@ -116,6 +116,12 @@ class GroupTestCase(BaseTestCase):
         self.assertEquals(qs[0].gid, 1001)
         self.assertEquals(qs[1].gid, 1000)
 
+    def test_bulk_delete(self):
+        LdapGroup.objects.all().delete()
+
+        qs = LdapGroup.objects.all()
+        self.assertEquals(len(qs), 0)
+
     def test_update(self):
         g = LdapGroup.objects.get(name='foogroup')