def test_script_close_attack(): import simplejson res = simplejson.dumps('') assert '' not in res res = simplejson.dumps(simplejson.loads('""')) assert '' not in res