From b0a5524028cb692d83fafca88ed40794b5c1e86a Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 9 Mar 2012 11:48:32 -0500 Subject: Fix little test errors Two test methods in test_rpcserver had the same name; the first didn't get to run. Another duplicate pair was in test_hbac_plugin with the same name; the ignored test had small error in it. check_TypeError used a wrong constant name An error reporting function in test.util used uninitialized argument names. This patch fixes these problems. --- tests/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py index 5a365fbcd..9bce7c08c 100644 --- a/tests/util.py +++ b/tests/util.py @@ -446,7 +446,7 @@ def check_TypeError(value, type_, name, callback, *args, **kw): assert e.type is type_ assert e.name == name assert type(e.name) is str - assert str(e) == ipalib.errors.TYPE_FORMAT % (name, type_, value) + assert str(e) == ipalib.errors.TYPE_ERROR % (name, type_, value) return e @@ -592,7 +592,7 @@ class DummyClass(object): def __process(self, name_, args_, kw_): if self.__i >= len(self.__calls): raise AssertionError( - 'extra call: %s, %r, %r' % (name, args, kw) + 'extra call: %s, %r, %r' % (name_, args_, kw_) ) (name, args, kw, result) = self.__calls[self.__i] self.__i += 1 -- cgit