diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-31 11:57:02 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:47 +0100 |
commit | 3aa39547df18bc77ba49720f8a3a1a0052907859 (patch) | |
tree | a067e432ecc35f483afbd0b946c89a55345db294 /tests/test_ipaserver/test_ldap.py | |
parent | f17aa00ff01e3fff35d3b3ac75f001d076827ec8 (diff) | |
download | freeipa.git-3aa39547df18bc77ba49720f8a3a1a0052907859.tar.gz freeipa.git-3aa39547df18bc77ba49720f8a3a1a0052907859.tar.xz freeipa.git-3aa39547df18bc77ba49720f8a3a1a0052907859.zip |
Support attributes with multiple names in LDAPEntry.
Diffstat (limited to 'tests/test_ipaserver/test_ldap.py')
-rw-r--r-- | tests/test_ipaserver/test_ldap.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_ipaserver/test_ldap.py b/tests/test_ipaserver/test_ldap.py index 7e5ba390..a35f7830 100644 --- a/tests/test_ipaserver/test_ldap.py +++ b/tests/test_ipaserver/test_ldap.py @@ -165,17 +165,21 @@ class test_ldap(object): assert u'cn' in e.keys() assert 'CN' in e assert 'CN' not in e.keys() + assert 'commonName' in e + assert 'commonName' not in e.keys() assert e['CN'] is cn1 assert e['CN'] is e[u'cn'] e.dn = dn2 assert e.dn is dn2 - e['CN'] = cn2 + e['commonName'] = cn2 assert u'cn' in e assert u'cn' not in e.keys() assert 'CN' in e - assert 'CN' in e.keys() + assert 'CN' not in e.keys() + assert 'commonName' in e + assert 'commonName' in e.keys() assert e['CN'] is cn2 assert e['CN'] is e[u'cn'] @@ -184,3 +188,5 @@ class test_ldap(object): assert 'CN' not in e.keys() assert u'cn' not in e assert u'cn' not in e.keys() + assert 'commonName' not in e + assert 'commonName' not in e.keys() |