From: jlaine Date: Wed, 19 May 2010 08:05:08 +0000 (+0000) Subject: test "in" operation X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=2af7bbb69791fc49de3bb91c5ce77c846434b53e;p=matthijs%2Fupstream%2Fdjango-ldapdb.git test "in" operation git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@846 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/tests.py b/ldapdb/tests.py index 806c764..d64ff46 100644 --- a/ldapdb/tests.py +++ b/ldapdb/tests.py @@ -37,6 +37,10 @@ class WhereTestCase(TestCase): where.add((Constraint("cn", "cn", None), 'endswith', "test"), AND) self.assertEquals(where.as_sql(), "(cn=*test)") + where = WhereNode() + where.add((Constraint("cn", "cn", None), 'in', ["foo", "bar"]), AND) + self.assertEquals(where.as_sql(), "(|(cn=foo)(cn=bar))") + def test_and(self): where = WhereNode() where.add((Constraint("cn", "cn", None), 'exact', "foo"), AND)