def test_group_list(): results = get.group_list(client=client.Client(), order_by='', sort='', groups='', all_fields='') assert results['success'] is True assert len(results['result']) > 0 assert results['result'][0] != '' results = get.group_list(client=client.Client(), all_fields=True) assert results['success'] is True assert len(results['result']) > 0 assert isinstance(results['result'][0], dict)
def test_group_revision_list(): groups = get.group_list() assert groups['success'] == True group = groups['result'][0] results = get.group_revision_list(client=client.Client(), id=group) assert results['success'] is True assert results['result'][0]['timestamp'] != ''
def test_group_show(): groups = get.group_list(client=client.Client(), order_by='', sort='', groups='', all_fields='') group = groups['result'][0] results = get.group_show(client=client.Client(), id=group) assert results['success'] is True assert results['result']['display_name'].lower() == group.lower()
def test_member_list(): groups = get.group_list(client=client.Client(), order_by='', sort='', groups='', all_fields='') group = groups['result'][0] results = get.member_list(client=client.Client(), id=group) print results['result'] assert results['success'] is True assert len(results['result']) > 0
def test_group_package_show(): groups = get.group_list(client=client.Client()) assert groups['success'] is True group = groups['result'][0] results = get.group_package_show(client=client.Client(), id=group) assert results['success'] is True assert len(results['result']) > 0 assert results['result'][0]['name'] != ''
def test_group_show(): groups = get.group_list(order_by=666, sort=666, groups='', all_fields='') group = groups['result'][0] results = get.group_show(id=group) assert results['success'] is True assert results['result']['display_name'].lower() == group.lower()
def test_group_list(): results = get.group_list(order_by=666, sort='', groups='', all_fields='')