def test_parse_feed_path(): expected = { "customer_id": "cuttlefish", "feed_id": "mussel", } path = CustomerFeedServiceClient.feed_path(**expected) # Check that the path construction is reversible. actual = CustomerFeedServiceClient.parse_feed_path(path) assert expected == actual
def test_feed_path(): customer_id = "oyster" feed_id = "nudibranch" expected = "customers/{customer_id}/feeds/{feed_id}".format(customer_id=customer_id, feed_id=feed_id, ) actual = CustomerFeedServiceClient.feed_path(customer_id, feed_id) assert expected == actual