git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@910
e071eeec-0327-468d-9b6a-
08194a12b294
self.assertEquals(g.gid, 1000)
self.assertEquals(g.usernames, ['foouser', 'baruser'])
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)
qs = LdapGroup.objects.filter(name='does_not_exist')
self.assertEquals(len(qs), 0)
self.assertEquals(g.gid, 1000)
self.assertEquals(g.usernames, ['foouser', 'baruser'])
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):
self.assertRaises(LdapGroup.DoesNotExist, LdapGroup.objects.get, name='does_not_exist')
def test_order_by(self):