freeipa/tests/test_xmlrpc
Petr Viktorin c14a2d8245 Use nose tools to check for exceptions
Some of our tests checked for exceptions using an error-prone
try block: they allowed the expected exception to pass, but sometimes
forgot an else block, so the test passed when an exception wasn't
thrown.

This changes the tests to use the appropriate nose tools (raises,
assert_raises).
For consistency, tests that had a correct else block are also changed.

Also fix some test problems that were hidden by the above:
- in some sudorule and HBAC tests, change the *_add_user argument name
  from `users` to `user`
- don't remove HBAC testing data while it was still used
2012-03-19 16:33:35 +01:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
objectclasses.py Add support for SSH public keys to user and host objects. 2012-02-13 22:21:27 -05:00
test_attr.py Add --delattr option to complement --setattr/--addattr 2011-11-29 10:08:28 +01:00
test_automember_plugin.py Suppress managed netgroups from showing as memberof hostgroups. 2011-08-31 14:34:52 +02:00
test_automount_plugin.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_cert.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_delegation_plugin.py Memberof attribute control and update 2012-02-08 10:43:25 +01:00
test_dns_plugin.py Improve hostname and domain name validation 2012-02-29 18:52:58 +01:00
test_group_plugin.py Remove ipausers' gidnumber from tests 2012-03-14 23:59:54 -04:00
test_hbac_plugin.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_hbacsvcgroup_plugin.py ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00
test_hbactest_plugin.py Make hostnames adhere to new standards in hbactest plugin tests 2012-03-01 21:53:29 -05:00
test_host_plugin.py Don't allow hosts and services of IPA masters to be disabled. 2012-03-19 16:09:09 +01:00
test_hostgroup_plugin.py Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
test_krbtpolicy.py Change the way has_keytab is determined, also check for password. 2011-08-24 14:12:01 +02:00
test_nesting.py Suppress managed netgroups as indirect members of hosts. 2011-09-19 08:41:25 +02:00
test_netgroup_plugin.py Don't crash when searching with empty relationship options 2012-03-13 23:28:53 -04:00
test_passwd_plugin.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_permission_plugin.py Validate attributes in permission-add 2012-02-28 18:22:24 -05:00
test_privilege_plugin.py ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00
test_pwpolicy.py Disallow deletion of global password policy. 2011-10-12 10:12:49 +02:00
test_replace.py Change the way has_keytab is determined, also check for password. 2011-08-24 14:12:01 +02:00
test_role_plugin.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
test_selfservice_plugin.py Fix raw format for ACI commands 2012-02-03 17:04:51 +01:00
test_selinuxusermap_plugin.py Fix deletion of HBAC Rules when there are SELinux user maps defined 2012-01-24 21:09:09 -05:00
test_service_plugin.py Don't allow hosts and services of IPA masters to be disabled. 2012-03-19 16:09:09 +01:00
test_sudocmd_plugin.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
test_sudocmdgroup_plugin.py Allow removing sudo commands with special characters from command groups 2012-03-12 16:02:29 +01:00
test_sudorule_plugin.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00
test_user_plugin.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
xmlrpc_test.py Display serial number as HEX (DECIMAL) when showing certificates. 2012-03-14 04:40:35 -04:00