예제 #1
0
def test_parse_common_project_path():
    expected = {
        "project": "mussel",
    }
    path = IamCheckerClient.common_project_path(**expected)

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