Esempio n. 1
0
def test_parse_common_organization_path():
    expected = {
        "organization": "octopus",
    }
    path = ChangeStatusServiceClient.common_organization_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_common_organization_path(path)
    assert expected == actual
Esempio n. 2
0
def test_common_organization_path():
    organization = "whelk"
    expected = "organizations/{organization}".format(
        organization=organization, )
    actual = ChangeStatusServiceClient.common_organization_path(organization)
    assert expected == actual