summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_group_plugin.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-07-02 16:56:51 +0200
committerRob Crittenden <rcritten@redhat.com>2009-07-02 13:33:05 -0400
commit48d666979695ddcf1e0856588e394833e3995f66 (patch)
tree4afccb641a9b69eb68a6564691a8664e6aabec97 /tests/test_xmlrpc/test_group_plugin.py
parent34b5b0d56363920d14062ef5816cd70efb145537 (diff)
downloadfreeipa-48d666979695ddcf1e0856588e394833e3995f66.tar.gz
freeipa-48d666979695ddcf1e0856588e394833e3995f66.tar.xz
freeipa-48d666979695ddcf1e0856588e394833e3995f66.zip
Fix unit tests to handle new group-{add, del}-member semantics.
Diffstat (limited to 'tests/test_xmlrpc/test_group_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_group_plugin.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_xmlrpc/test_group_plugin.py b/tests/test_xmlrpc/test_group_plugin.py
index d509c1045..d1024fcac 100644
--- a/tests/test_xmlrpc/test_group_plugin.py
+++ b/tests/test_xmlrpc/test_group_plugin.py
@@ -71,7 +71,7 @@ class test_group(XMLRPC_test):
"""
kw = {}
kw['groups'] = self.cn2
- (total, res) = api.Command['group_add_member'](self.cn, **kw)
+ (total, failed, res) = api.Command['group_add_member'](self.cn, **kw)
assert total == 1
def test_4_group_add_member(self):
@@ -80,8 +80,9 @@ class test_group(XMLRPC_test):
"""
kw = {}
kw['groups'] = u'notfound'
- (total, res) = api.Command['group_add_member'](self.cn, **kw)
+ (total, failed, res) = api.Command['group_add_member'](self.cn, **kw)
assert total == 0
+ assert 'notfound' in failed
def test_5_group_show(self):
"""
@@ -141,7 +142,7 @@ class test_group(XMLRPC_test):
"""
kw = {}
kw['groups'] = self.cn2
- (total, res) = api.Command['group_del_member'](self.cn, **kw)
+ (total, failed, res) = api.Command['group_del_member'](self.cn, **kw)
assert res
assert total == 1
@@ -152,8 +153,9 @@ class test_group(XMLRPC_test):
kw = {}
kw['groups'] = u'notfound'
# an error isn't thrown, the list of failed members is returned
- (total, res) = api.Command['group_del_member'](self.cn, **kw)
+ (total, failed, res) = api.Command['group_del_member'](self.cn, **kw)
assert total == 0
+ assert 'notfound' in failed
def test_b_group_del(self):
"""