コード例 #1
0
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()))
コード例 #2
0
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()))
コード例 #3
0
def get_set_group_test():
    client = DSSClient(host, apiKey)
    group = client.create_group("toto")

    desc = group.get_definition()
    desc['description'] = 'here'
    group.set_definition(desc)
    desc2 = group.get_definition()

    eq_('here', desc2['description'])

    group.delete()
コード例 #4
0
def get_set_group_test():
	client = DSSClient(host, apiKey)
	group = client.create_group("toto")
	
	desc = group.get_definition()
	desc['description'] = 'here'
	group.set_definition(desc)
	desc2 = group.get_definition()
	
	eq_('here', desc2['description'])

	group.delete()