From a1236b654200ba79ba0074ca88ff5972802fed56 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 29 Nov 2013 18:31:32 +0100 Subject: Allow Declarative test classes to specify the API version This makes it possible to test behavior with older clients. --- ipatests/test_xmlrpc/xmlrpc_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipatests/test_xmlrpc/xmlrpc_test.py') diff --git a/ipatests/test_xmlrpc/xmlrpc_test.py b/ipatests/test_xmlrpc/xmlrpc_test.py index 04d69475a..21959fbb1 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): -- cgit