def test_media_file_path():
    customer_id = "squid"
    media_file_id = "clam"
    expected = "customers/{customer_id}/mediaFiles/{media_file_id}".format(
        customer_id=customer_id,
        media_file_id=media_file_id,
    )
    actual = MediaFileServiceClient.media_file_path(customer_id, media_file_id)
    assert expected == actual
def test_parse_media_file_path():
    expected = {
        "customer_id": "whelk",
        "media_file_id": "octopus",
    }
    path = MediaFileServiceClient.media_file_path(**expected)

    # Check that the path construction is reversible.
    actual = MediaFileServiceClient.parse_media_file_path(path)
    assert expected == actual