canaille-globuzma/tests/ldap/test_ldap_utils.py

9 lines
287 B
Python
Raw Normal View History

2021-06-03 13:00:11 +00:00
from canaille.models import Group
def test_equality(slapd_connection, foo_group, bar_group):
2021-12-08 14:01:35 +00:00
Group.ldap_object_attributes(conn=slapd_connection)
2021-06-03 13:00:11 +00:00
assert foo_group != bar_group
foo_group2 = Group.get(dn=foo_group.dn, conn=slapd_connection)
assert foo_group == foo_group2