projects
/
matthijs
/
upstream
/
django-ldapdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test "in" operation
[matthijs/upstream/django-ldapdb.git]
/
ldapdb
/
tests.py
diff --git
a/ldapdb/tests.py
b/ldapdb/tests.py
index 806c764b95dd56a6fe545ba1dfeb33261a993d36..d64ff4625a354ee00796591174db70cdb27b1ea9 100644
(file)
--- 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.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)
def test_and(self):
where = WhereNode()
where.add((Constraint("cn", "cn", None), 'exact', "foo"), AND)