def test_feed_mapping_path(): customer = "oyster" feed_mapping = "nudibranch" expected = "customers/{customer}/feedMappings/{feed_mapping}".format( customer=customer, feed_mapping=feed_mapping, ) actual = FeedMappingServiceClient.feed_mapping_path(customer, feed_mapping) assert expected == actual
def test_parse_feed_mapping_path(): expected = { "customer": "cuttlefish", "feed_mapping": "mussel", } path = FeedMappingServiceClient.feed_mapping_path(**expected) # Check that the path construction is reversible. actual = FeedMappingServiceClient.parse_feed_mapping_path(path) assert expected == actual