diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-03-09 11:48:32 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-04-03 16:19:43 -0400 |
commit | b0a5524028cb692d83fafca88ed40794b5c1e86a (patch) | |
tree | 4c938612033692e6818da1925af5ec01ef13b300 /tests/test_xmlrpc/test_hbac_plugin.py | |
parent | c007ac0d70ff7a3a4867a0316735e8cab9e34021 (diff) | |
download | freeipa-b0a5524028cb692d83fafca88ed40794b5c1e86a.tar.gz freeipa-b0a5524028cb692d83fafca88ed40794b5c1e86a.tar.xz freeipa-b0a5524028cb692d83fafca88ed40794b5c1e86a.zip |
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.
Diffstat (limited to 'tests/test_xmlrpc/test_hbac_plugin.py')
-rw-r--r-- | tests/test_xmlrpc/test_hbac_plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xmlrpc/test_hbac_plugin.py b/tests/test_xmlrpc/test_hbac_plugin.py index bd50a585e..78c4973c9 100644 --- a/tests/test_xmlrpc/test_hbac_plugin.py +++ b/tests/test_xmlrpc/test_hbac_plugin.py @@ -265,8 +265,8 @@ class test_hbac(XMLRPC_test): assert 'hostgroup' in failed['memberhost'] assert not failed['memberhost']['hostgroup'] entry = ret['result'] - assert 'memberhost_host' not in res[1] - assert 'memberhost_hostgroup' not in res[1] + assert 'memberhost_host' not in entry + assert 'memberhost_hostgroup' not in entry def test_a_hbacrule_add_sourcehost(self): """ @@ -327,7 +327,7 @@ class test_hbac(XMLRPC_test): entry = ret['result'] assert 'memberservice service' not in entry - def test_b_hbacrule_remove_host(self): + def test_b_hbacrule_remove_sourcehost(self): """ Test removing source host and hostgroup from HBAC rule using `xmlrpc.hbacrule_remove_host`. """ |