Пример #1
0
def test_parse_common_project_path():
    expected = {
        "project": "octopus",
    }
    path = CustomerManagerLinkServiceClient.common_project_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerManagerLinkServiceClient.parse_common_project_path(path)
    assert expected == actual
Пример #2
0
def test_common_project_path():
    project = "whelk"
    expected = "projects/{project}".format(project=project, )
    actual = CustomerManagerLinkServiceClient.common_project_path(project)
    assert expected == actual