def test_video_path():
    customer = "squid"
    video = "clam"
    expected = "customers/{customer}/videos/{video}".format(
        customer=customer,
        video=video,
    )
    actual = VideoServiceClient.video_path(customer, video)
    assert expected == actual
def test_parse_video_path():
    expected = {
        "customer": "whelk",
        "video": "octopus",
    }
    path = VideoServiceClient.video_path(**expected)

    # Check that the path construction is reversible.
    actual = VideoServiceClient.parse_video_path(path)
    assert expected == actual