summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_ipalib')
-rw-r--r--ipatests/test_ipalib/test_frontend.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_ipalib/test_frontend.py b/ipatests/test_ipalib/test_frontend.py
index 3ca03c39b..76f500fe2 100644
--- a/ipatests/test_ipalib/test_frontend.py
+++ b/ipatests/test_ipalib/test_frontend.py
@@ -642,7 +642,7 @@ class test_Command(ClassChecker):
(api, home) = create_test_api(in_server=True)
api.finalize()
o = my_cmd(api)
- assert o.run.im_func is self.cls.run.im_func
+ assert o.run.__func__ is self.cls.run.__func__
out = o.run(*args, **kw)
assert ('execute', args, kw) == out
@@ -650,7 +650,7 @@ class test_Command(ClassChecker):
(api, home) = create_test_api(in_server=False)
api.finalize()
o = my_cmd(api)
- assert o.run.im_func is self.cls.run.im_func
+ assert o.run.__func__ is self.cls.run.__func__
assert ('forward', args, kw) == o.run(*args, **kw)
def test_messages(self):
@@ -682,14 +682,14 @@ class test_Command(ClassChecker):
(api, home) = create_test_api(in_server=True)
api.finalize()
o = my_cmd(api)
- assert o.run.im_func is self.cls.run.im_func
+ assert o.run.__func__ is self.cls.run.__func__
assert {'name': 'execute', 'messages': expected} == o.run(*args, **kw)
# Test in non-server context
(api, home) = create_test_api(in_server=False)
api.finalize()
o = my_cmd(api)
- assert o.run.im_func is self.cls.run.im_func
+ assert o.run.__func__ is self.cls.run.__func__
assert {'name': 'forward', 'messages': expected} == o.run(*args, **kw)
def test_validate_output_basic(self):