예제 #1
0
def test_parse_common_folder_path():
    expected = {
        "folder": "octopus",
    }
    path = LicenseCodesClient.common_folder_path(**expected)

    # Check that the path construction is reversible.
    actual = LicenseCodesClient.parse_common_folder_path(path)
    assert expected == actual
예제 #2
0
def test_common_folder_path():
    folder = "whelk"
    expected = "folders/{folder}".format(folder=folder, )
    actual = LicenseCodesClient.common_folder_path(folder)
    assert expected == actual