diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-03-27 14:04:00 +0100 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-04-18 14:59:20 +0200 |
commit | 4314d02fbf9ef1cb9543ecf76a8d22e79d250214 (patch) | |
tree | 8c6ac601e881712e8cf7c25fce420026a3762553 /ipatests/test_ipalib/test_output.py | |
parent | c644b47492e22370bc71f57e5ac46b50f9b4e247 (diff) | |
download | freeipa-4314d02fbf9ef1cb9543ecf76a8d22e79d250214.tar.gz freeipa-4314d02fbf9ef1cb9543ecf76a8d22e79d250214.tar.xz freeipa-4314d02fbf9ef1cb9543ecf76a8d22e79d250214.zip |
Allow primary keys to use different type than unicode.
Also return list of primary keys instead of a single unicode CSV value from
LDAPDelete-based commands.
This introduces a new capability 'primary_key_types' for backward
compatibility with old clients.
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipatests/test_ipalib/test_output.py')
-rw-r--r-- | ipatests/test_ipalib/test_output.py | 7 |
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 ) |