예제 #1
0
def test_parse_common_organization_path():
    expected = {
        "organization": "nautilus",
    }
    path = TopicViewServiceClient.common_organization_path(**expected)

    # Check that the path construction is reversible.
    actual = TopicViewServiceClient.parse_common_organization_path(path)
    assert expected == actual
예제 #2
0
def test_common_organization_path():
    organization = "winkle"
    expected = "organizations/{organization}".format(organization=organization, )
    actual = TopicViewServiceClient.common_organization_path(organization)
    assert expected == actual