summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-11-29 18:31:32 +0100
committerMartin Kosek <mkosek@redhat.com>2013-12-13 15:08:51 +0100
commita1236b654200ba79ba0074ca88ff5972802fed56 (patch)
tree8069f1a6ac08900160d29967d0544a7ecf2ef577
parenta8ba5e0ef9fa92fb465aab8c25947f5717f4b3cb (diff)
downloadfreeipa-a1236b654200ba79ba0074ca88ff5972802fed56.tar.gz
freeipa-a1236b654200ba79ba0074ca88ff5972802fed56.tar.xz
freeipa-a1236b654200ba79ba0074ca88ff5972802fed56.zip
Allow Declarative test classes to specify the API version
This makes it possible to test behavior with older clients.
-rw-r--r--ipatests/test_xmlrpc/xmlrpc_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/xmlrpc_test.py b/ipatests/test_xmlrpc/xmlrpc_test.py
index 04d69475..21959fbb 100644
--- a/ipatests/test_xmlrpc/xmlrpc_test.py
+++ b/ipatests/test_xmlrpc/xmlrpc_test.py
@@ -241,6 +241,7 @@ class Declarative(XMLRPC_test):
and must not fail.
"""
+ default_version = API_VERSION
cleanup_commands = tuple()
tests = tuple()
@@ -290,7 +291,7 @@ class Declarative(XMLRPC_test):
def check(self, nice, desc, command, expected, extra_check=None):
(cmd, args, options) = command
- options.setdefault('version', API_VERSION)
+ options.setdefault('version', self.default_version)
if cmd not in api.Command:
raise nose.SkipTest('%r not in api.Command' % cmd)
if isinstance(expected, errors.PublicError):