summaryrefslogtreecommitdiffstats
path: root/tests/test_ipaserver/test_rpcserver.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-03-09 11:48:32 -0500
committerRob Crittenden <rcritten@redhat.com>2012-04-03 16:19:43 -0400
commitb0a5524028cb692d83fafca88ed40794b5c1e86a (patch)
tree4c938612033692e6818da1925af5ec01ef13b300 /tests/test_ipaserver/test_rpcserver.py
parentc007ac0d70ff7a3a4867a0316735e8cab9e34021 (diff)
downloadfreeipa-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_ipaserver/test_rpcserver.py')
-rw-r--r--tests/test_ipaserver/test_rpcserver.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_ipaserver/test_rpcserver.py b/tests/test_ipaserver/test_rpcserver.py
index 97632b05d..96d4614a1 100644
--- a/tests/test_ipaserver/test_rpcserver.py
+++ b/tests/test_ipaserver/test_rpcserver.py
@@ -96,7 +96,7 @@ def test_internal_error():
assert s.headers == [('Content-Type', 'text/html; charset=utf-8')]
-def test_internal_error():
+def test_unauthorized_error():
f = rpcserver.HTTP_Status()
t = rpcserver._unauthorized_template
s = StartResponse()
@@ -109,7 +109,6 @@ def test_internal_error():
assert s.headers == [('Content-Type', 'text/html; charset=utf-8')]
-
def test_params_2_args_options():
"""
Test the `ipaserver.rpcserver.params_2_args_options` function.