Exemple #1
0
def test_parse_change_status_path():
    expected = {
        "customer": "scallop",
        "change_status": "abalone",
    }
    path = ChangeStatusServiceClient.change_status_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_change_status_path(path)
    assert expected == actual
Exemple #2
0
def test_change_status_path():
    customer = "winkle"
    change_status = "nautilus"
    expected = "customers/{customer}/changeStatus/{change_status}".format(customer=customer, change_status=change_status, )
    actual = ChangeStatusServiceClient.change_status_path(customer, change_status)
    assert expected == actual