def test_parse_feed_item_target_path(): expected = { "customer": "whelk", "feed_item_target": "octopus", } path = FeedItemTargetServiceClient.feed_item_target_path(**expected) # Check that the path construction is reversible. actual = FeedItemTargetServiceClient.parse_feed_item_target_path(path) assert expected == actual
def test_feed_item_target_path(): customer = "squid" feed_item_target = "clam" expected = "customers/{customer}/feedItemTargets/{feed_item_target}".format(customer=customer, feed_item_target=feed_item_target, ) actual = FeedItemTargetServiceClient.feed_item_target_path(customer, feed_item_target) assert expected == actual