def test_parse_change_status_path(): expected = { "customer_id": "scallop", "change_status_id": "abalone", } path = ChangeStatusServiceClient.change_status_path(**expected) # Check that the path construction is reversible. actual = ChangeStatusServiceClient.parse_change_status_path(path) assert expected == actual
def test_change_status_path(): customer_id = "winkle" change_status_id = "nautilus" expected = "customers/{customer_id}/changeStatus/{change_status_id}".format( customer_id=customer_id, change_status_id=change_status_id, ) actual = ChangeStatusServiceClient.change_status_path( customer_id, change_status_id) assert expected == actual