[tests] Adapt to Django's Lookup-based API.
[tests] Adapt to Django's Lookup-based API.

Drop the old-style Constraint, removed in recent Django versions.

django-ldapdb/django-ldapdb,jlaine/django-ldapdb