mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-30 10:47:08 -06:00
c14a2d8245
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 |
||
---|---|---|
.. | ||
__init__.py | ||
0_reset.update | ||
1_add.update | ||
2_update.update | ||
3_update.update | ||
4_update.update | ||
5_update.update | ||
6_update.update | ||
8_badsyntax.update | ||
9_badsyntax.update | ||
test_updates.py |