X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ldapdb%2Ftests.py;h=d2aba735a7e6a7c3a38639500e9a9d150169d9fd;hb=b1cc6993cafbf24e8a394d8b9bea1048efa8adc9;hp=6d5c8b5c29e4833d02bfbfdeaabd9ecfd00817d2;hpb=089876639ebce60a85a285d7ab076797fa96c20c;p=matthijs%2Fupstream%2Fdjango-ldapdb.git diff --git a/ldapdb/tests.py b/ldapdb/tests.py index 6d5c8b5..d2aba73 100644 --- a/ldapdb/tests.py +++ b/ldapdb/tests.py @@ -96,6 +96,10 @@ class WhereTestCase(TestCase): where.add((Constraint("memberUid", "memberUid", ListField()), 'contains', 'foouser'), AND) self.assertEquals(where.as_sql(), "(memberUid=foouser)") + where = WhereNode() + where.add((Constraint("memberUid", "memberUid", ListField()), 'contains', '(foouser)'), AND) + self.assertEquals(where.as_sql(), "(memberUid=\\28foouser\\29)") + def test_and(self): where = WhereNode() where.add((Constraint("cn", "cn", CharField()), 'exact', "foo"), AND)