From 326c4e332a9447a6972a0f53f9769a5a3b965fba Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 31 May 2010 19:45:42 +0000 Subject: [PATCH] touchup documentation git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@910 e071eeec-0327-468d-9b6a-08194a12b294 --- examples/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tests.py b/examples/tests.py index e108852..26d07d3 100644 --- a/examples/tests.py +++ b/examples/tests.py @@ -78,7 +78,7 @@ class GroupTestCase(BaseTestCase): self.assertEquals(g.gid, 1000) self.assertEquals(g.usernames, ['foouser', 'baruser']) - # try to get non-existent entry + # try to filter non-existent entries qs = LdapGroup.objects.filter(name='does_not_exist') self.assertEquals(len(qs), 0) @@ -89,6 +89,7 @@ class GroupTestCase(BaseTestCase): self.assertEquals(g.gid, 1000) self.assertEquals(g.usernames, ['foouser', 'baruser']) + # try to get a non-existent entry self.assertRaises(LdapGroup.DoesNotExist, LdapGroup.objects.get, name='does_not_exist') def test_order_by(self): -- 2.30.2