json_feature_properties_test: print test name for failures
This commit is contained in:
parent
c9672b6a9d
commit
49908b5e3b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue