def test_common_organization_path():
    organization = "oyster"
    expected = "organizations/{organization}".format(
        organization=organization, )
    actual = VideoIntelligenceServiceClient.common_organization_path(
        organization)
    assert expected == actual
Example #2
0
def test_parse_common_organization_path():
    expected = {
        "organization": "nudibranch",
    }
    path = VideoIntelligenceServiceClient.common_organization_path(**expected)

    # Check that the path construction is reversible.
    actual = VideoIntelligenceServiceClient.parse_common_organization_path(path)
    assert expected == actual