Ejemplo n.º 1
0
def test_organization_list():
    results = get.organization_list(client=client.Client(), order_by='',
        sort='', organizations='',
        all_fields='')
    assert results['success'] is True
    orgs = results['result']
    assert len(orgs) > 0
    assert orgs[0] != ''
Ejemplo n.º 2
0
def test_organization_list():
    results = get.organization_list(client=client.Client(),
                                    order_by='',
                                    sort='',
                                    organizations='',
                                    all_fields='')
    assert results['success'] is True
    orgs = results['result']
    assert len(orgs) > 0
    assert orgs[0] != ''
Ejemplo n.º 3
0
def test_organization_show():
    results = get.organization_list(client=client.Client(), order_by='',
        sort='', organizations='',
        all_fields=True)
    assert results['success'] is True
    orgs = results['result']
    if len(orgs) > 0:
        results = get.organization_show(client=client.Client(),
            id=orgs[0]['id'])
        assert results['success'] is True
        assert results['result']['display_name'] == orgs[0]['display_name']
Ejemplo n.º 4
0
def test_organization_show():
    results = get.organization_list(client=client.Client(),
                                    order_by='',
                                    sort='',
                                    organizations='',
                                    all_fields=True)
    assert results['success'] is True
    orgs = results['result']
    if len(orgs) > 0:
        results = get.organization_show(client=client.Client(),
                                        id=orgs[0]['id'])
        assert results['success'] is True
        assert results['result']['display_name'] == orgs[0]['display_name']
Ejemplo n.º 5
0
def test_organization_list():
    results = get.organization_list(order_by=20,
        sort=765, organizations={'asd':4},
        all_fields=0)