canaille-globuzma/tests/test_ldap_utils.py

9 lines
282 B
Python
Raw Normal View History

2021-06-03 10:00:04 +00:00
from canaille.models import Group
2021-06-03 10:28:45 +00:00
2021-06-03 10:00:04 +00:00
def test_equality(slapd_connection, foo_group, bar_group):
Group.attr_type_by_name(conn=slapd_connection)
assert foo_group != bar_group
foo_group2 = Group.get(dn=foo_group.dn, conn=slapd_connection)
2021-06-03 10:28:45 +00:00
assert foo_group == foo_group2