summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_krbtpolicy.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_xmlrpc/test_krbtpolicy.py')
-rw-r--r--tests/test_xmlrpc/test_krbtpolicy.py21
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/test_xmlrpc/test_krbtpolicy.py b/tests/test_xmlrpc/test_krbtpolicy.py
index 26ba87c47..fc2bf54cf 100644
--- a/tests/test_xmlrpc/test_krbtpolicy.py
+++ b/tests/test_xmlrpc/test_krbtpolicy.py
@@ -23,7 +23,7 @@ Test kerberos ticket policy
from ipalib import api, errors
from tests.test_xmlrpc import objectclasses
from xmlrpc_test import Declarative, fuzzy_digits, fuzzy_uuid
-from ipalib.dn import *
+from ipapython.dn import DN
user1 = u'tuser1'
@@ -61,9 +61,8 @@ class test_krbtpolicy(Declarative):
value=u'',
summary=None,
result=dict(
- dn=lambda x: DN(x) == \
- DN(('cn',api.env.domain),('cn','kerberos'),
- api.env.basedn),
+ dn=DN(('cn',api.env.domain),('cn','kerberos'),
+ api.env.basedn),
krbmaxticketlife=[u'86400'],
krbmaxrenewableage=[u'604800'],
),
@@ -110,18 +109,14 @@ class test_krbtpolicy(Declarative):
cn=[u'Test User1'],
initials=[u'TU'],
ipauniqueid=[fuzzy_uuid],
- krbpwdpolicyreference=lambda x: [DN(i) for i in x] == \
- [DN(('cn','global_policy'),('cn',api.env.realm),
- ('cn','kerberos'),api.env.basedn)],
- mepmanagedentry=lambda x: [DN(i) for i in x] == \
- [DN(('cn',user1),('cn','groups'),('cn','accounts'),
- api.env.basedn)],
+ krbpwdpolicyreference=[DN(('cn','global_policy'),('cn',api.env.realm),
+ ('cn','kerberos'),api.env.basedn)],
+ mepmanagedentry=[DN(('cn',user1),('cn','groups'),('cn','accounts'),
+ api.env.basedn)],
memberof_group=[u'ipausers'],
has_keytab=False,
has_password=False,
- dn=lambda x: DN(x) == \
- DN(('uid',user1),('cn','users'),('cn','accounts'),
- api.env.basedn)
+ dn=DN(('uid',user1),('cn','users'),('cn','accounts'), api.env.basedn)
),
),
),