def test_parse_customer_feed_path(): expected = { "customer": "whelk", "customer_feed": "octopus", } path = CustomerFeedServiceClient.customer_feed_path(**expected) # Check that the path construction is reversible. actual = CustomerFeedServiceClient.parse_customer_feed_path(path) assert expected == actual
def test_customer_feed_path(): customer = "squid" customer_feed = "clam" expected = "customers/{customer}/customerFeeds/{customer_feed}".format( customer=customer, customer_feed=customer_feed, ) actual = CustomerFeedServiceClient.customer_feed_path( customer, customer_feed) assert expected == actual