summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_passwd_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_xmlrpc/test_passwd_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_passwd_plugin.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_xmlrpc/test_passwd_plugin.py b/tests/test_xmlrpc/test_passwd_plugin.py
index 32e75acbe..2a44da711 100644
--- a/tests/test_xmlrpc/test_passwd_plugin.py
+++ b/tests/test_xmlrpc/test_passwd_plugin.py
@@ -21,6 +21,9 @@ Test the `ipalib/plugins/passwd.py` module.
"""
import sys
+
+from nose.tools import assert_raises # pylint: disable=E0611
+
from xmlrpc_test import XMLRPC_test, assert_attr_equal
from ipalib import api
from ipalib import errors
@@ -62,9 +65,5 @@ class test_passwd(XMLRPC_test):
api.Command['user_del'](self.uid)
# Verify that it is gone
- try:
+ with assert_raises(errors.NotFound):
api.Command['user_show'](self.uid)
- except errors.NotFound:
- pass
- else:
- assert False