def create_delete_group_test(): client = DSSClient(host, apiKey) count = len(client.list_groups()) group = client.create_group("toto") eq_(count + 1, len(client.list_groups())) group.delete() eq_(count, len(client.list_groups()))
def create_delete_group_test(): client = DSSClient(host, apiKey) count = len(client.list_groups()) group = client.create_group("toto") eq_(count + 1, len(client.list_groups())) group.delete() eq_(count, len(client.list_groups()))
def list_groups_test(): client = DSSClient(host, apiKey) groups = client.list_groups() ok_(len(groups) > 0)
def list_groups_test(): client = DSSClient(host, apiKey) groups = client.list_groups() ok_(len(groups) > 0)