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/test_ipaserver/test_rpcserver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_ipaserver/test_rpcserver.py') diff --git a/tests/test_ipaserver/test_rpcserver.py b/tests/test_ipaserver/test_rpcserver.py index 97632b05..96d4614a 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. -- cgit