def test_parse_extension_feed_item_path(): expected = { "customer_id": "whelk", "feed_item_id": "octopus", } path = ExtensionFeedItemServiceClient.extension_feed_item_path(**expected) # Check that the path construction is reversible. actual = ExtensionFeedItemServiceClient.parse_extension_feed_item_path(path) assert expected == actual
def test_extension_feed_item_path(): customer_id = "squid" feed_item_id = "clam" expected = "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format(customer_id=customer_id, feed_item_id=feed_item_id, ) actual = ExtensionFeedItemServiceClient.extension_feed_item_path(customer_id, feed_item_id) assert expected == actual