summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_user_plugin.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-01-16 10:24:03 -0500
committerRob Crittenden <rcritten@redhat.com>2009-01-19 10:40:11 -0500
commit0dd1ba37213dd088a4fd2a48ab478fa263877c1c (patch)
tree5692db1cb55124752f451548be1cd6adc4fb02d1 /tests/test_xmlrpc/test_user_plugin.py
parent322992ae4b4c6e45dbe7c850bb68198796bbfb92 (diff)
downloadfreeipa-0dd1ba37213dd088a4fd2a48ab478fa263877c1c.tar.gz
freeipa-0dd1ba37213dd088a4fd2a48ab478fa263877c1c.tar.xz
freeipa-0dd1ba37213dd088a4fd2a48ab478fa263877c1c.zip
Add some negative testing to the user and group plugin tests
Diffstat (limited to 'tests/test_xmlrpc/test_user_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_user_plugin.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_user_plugin.py b/tests/test_xmlrpc/test_user_plugin.py
index 6353d0b46..0189aa5ac 100644
--- a/tests/test_xmlrpc/test_user_plugin.py
+++ b/tests/test_xmlrpc/test_user_plugin.py
@@ -54,6 +54,15 @@ class test_User(XMLRPC_test):
assert res.get('uid','') == self.uid
assert res.get('homedirectory','') == self.home
+ def test_add2(self):
+ """
+ Test the `xmlrpc.user_add` method duplicate detection.
+ """
+ try:
+ res = api.Command['user_add'](**self.kw)
+ except errors.DuplicateEntry:
+ pass
+
def test_doshow(self):
"""
Test the `xmlrpc.user_show` method.