Example #1
0
def test_parse_common_project_path():
    expected = {
        "project": "nudibranch",
    }
    path = ChangeStatusServiceClient.common_project_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_common_project_path(path)
    assert expected == actual
Example #2
0
def test_common_project_path():
    project = "oyster"
    expected = "projects/{project}".format(project=project, )
    actual = ChangeStatusServiceClient.common_project_path(project)
    assert expected == actual