def test_geo_target_constant_path(): geo_target_constant = "squid" expected = "geoTargetConstants/{geo_target_constant}".format( geo_target_constant=geo_target_constant, ) actual = ExtensionFeedItemServiceClient.geo_target_constant_path( geo_target_constant) assert expected == actual
def test_parse_geo_target_constant_path(): expected = { "geo_target_constant": "clam", } path = ExtensionFeedItemServiceClient.geo_target_constant_path(**expected) # Check that the path construction is reversible. actual = ExtensionFeedItemServiceClient.parse_geo_target_constant_path( path) assert expected == actual