freeipa/tests/test_install
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
0_reset.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
1_add.update Fix the ipa-ldap-updater tests. 2010-09-10 16:52:31 -04:00
2_update.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
3_update.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
4_update.update Fix test failure in updater when adding values to a single-value attr 2011-07-11 19:21:51 -04:00
5_update.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
6_update.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
8_badsyntax.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
9_badsyntax.update Let the updater delete entries and add small test harness 2009-10-05 13:25:42 -06:00
test_updates.py Use nose tools to check for exceptions 2012-03-19 16:33:35 +01:00