Fix unit tests to handle new group-{add, del}-member semantics.

This commit is contained in:
Pavel Zuna
2009-07-02 16:56:51 +02:00
committed by Rob Crittenden
parent 34b5b0d563
commit 48d6669796
5 changed files with 37 additions and 27 deletions

View File

@@ -64,7 +64,7 @@ class test_hostgroup(XMLRPC_test):
"""
kw = {}
kw['hosts'] = self.host_fqdn
(total, res) = api.Command['hostgroup_add_member'](self.cn, **kw)
(total, failed, res) = api.Command['hostgroup_add_member'](self.cn, **kw)
assert res[1].get('member', []) != []
def test_4_hostgroup_show(self):
@@ -107,7 +107,7 @@ class test_hostgroup(XMLRPC_test):
"""
kw = {}
kw['hosts'] = self.host_fqdn
(total, res) = api.Command['hostgroup_del_member'](self.cn, **kw)
(total, failed, res) = api.Command['hostgroup_del_member'](self.cn, **kw)
assert res
assert res[1].get('member', []) == []