def test_customer_negative_criterion_path(): customer = "squid" customer_negative_criterion = "clam" expected = "customers/{customer}/customerNegativeCriteria/{customer_negative_criterion}".format( customer=customer, customer_negative_criterion=customer_negative_criterion, ) actual = CustomerNegativeCriterionServiceClient.customer_negative_criterion_path( customer, customer_negative_criterion) assert expected == actual
def test_parse_customer_negative_criterion_path(): expected = { "customer": "whelk", "customer_negative_criterion": "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