def test_customer_negative_criterion_path(): customer_id = "squid" criterion_id = "clam" expected = "customers/{customer_id}/customerNegativeCriteria/{criterion_id}".format( customer_id=customer_id, criterion_id=criterion_id, ) actual = CustomerNegativeCriterionServiceClient.customer_negative_criterion_path( customer_id, criterion_id) assert expected == actual
def test_parse_customer_negative_criterion_path(): expected = { "customer_id": "whelk", "criterion_id": "octopus", } path = CustomerNegativeCriterionServiceClient.customer_negative_criterion_path( **expected) # Check that the path construction is reversible. actual = CustomerNegativeCriterionServiceClient.parse_customer_negative_criterion_path( path) assert expected == actual