summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_output.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_ipalib/test_output.py')
-rw-r--r--ipatests/test_ipalib/test_output.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipatests/test_ipalib/test_output.py b/ipatests/test_ipalib/test_output.py
index 15ef11e10..e722a973d 100644
--- a/ipatests/test_ipalib/test_output.py
+++ b/ipatests/test_ipalib/test_output.py
@@ -25,6 +25,7 @@ from ipatests.util import raises, ClassChecker
from ipalib import output
from ipalib.frontend import Command
from ipalib import _
+from ipapython.version import API_VERSION
class test_Output(ClassChecker):
"""
@@ -78,12 +79,14 @@ class test_ListOfEntries(ClassChecker):
okay = dict(foo='bar')
nope = ('aye', 'bee')
- e = raises(TypeError, inst.validate, cmd, [okay, okay, nope])
+ e = raises(TypeError, inst.validate,
+ cmd, [okay, okay, nope], API_VERSION)
assert str(e) == output.emsg % (
'example', 'ListOfEntries', 'stuff', 2, dict, tuple, nope
)
- e = raises(TypeError, inst.validate, cmd, [nope, okay, nope])
+ e = raises(TypeError, inst.validate,
+ cmd, [nope, okay, nope], API_VERSION)
assert str(e) == output.emsg % (
'example', 'ListOfEntries', 'stuff', 0, dict, tuple, nope
)