def test_parse_feed_path(): expected = { "customer": "scallop", "feed": "abalone", } path = AdGroupFeedServiceClient.feed_path(**expected) # Check that the path construction is reversible. actual = AdGroupFeedServiceClient.parse_feed_path(path) assert expected == actual
def test_feed_path(): customer = "winkle" feed = "nautilus" expected = "customers/{customer}/feeds/{feed}".format(customer=customer, feed=feed, ) actual = AdGroupFeedServiceClient.feed_path(customer, feed) assert expected == actual