def test_parse_custom_interest_path(): expected = { "customer": "whelk", "custom_interest": "octopus", } path = CustomInterestServiceClient.custom_interest_path(**expected) # Check that the path construction is reversible. actual = CustomInterestServiceClient.parse_custom_interest_path(path) assert expected == actual
def test_custom_interest_path(): customer = "squid" custom_interest = "clam" expected = "customers/{customer}/customInterests/{custom_interest}".format( customer=customer, custom_interest=custom_interest, ) actual = CustomInterestServiceClient.custom_interest_path( customer, custom_interest) assert expected == actual