json_feature_properties_test: print test name for failures

This commit is contained in:
Dane Springmeyer 2015-01-05 11:46:29 -08:00
parent c9672b6a9d
commit 49908b5e3b

View file

@ -94,7 +94,7 @@ def test_char_escaping():
# confirm our behavior is the same as python json module
# for the original string
geojson_feat_string = feat.to_geojson()
eq_(geojson_feat_string,char['json'],"Mapnik's json escaping is not to spec: actual(%s) and expected(%s)" % (geojson_feat_string,char['json']))
eq_(geojson_feat_string,char['json'],"Mapnik's json escaping is not to spec: actual(%s) and expected(%s) for %s" % (geojson_feat_string,char['json'],char['name']))
# and the round tripped string
pyjson = json.loads(geojson_feat_string)
eq_(pyjson['properties']['name'],expected)