def test_parse_customer_feed_path(): expected = { "customer_id": "whelk", "feed_id": "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_id = "squid" feed_id = "clam" expected = "customers/{customer_id}/customerFeeds/{feed_id}".format(customer_id=customer_id, feed_id=feed_id, ) actual = CustomerFeedServiceClient.customer_feed_path(customer_id, feed_id) assert expected == actual