ó ÖÉÎSc@s5ddlZddlZdejfd„ƒYZdS(iÿÿÿÿNtTestEncodeForHTMLcBs,eZd„Zd„Zd„Zd„ZRS(cCs"tjƒ|_tjƒ|_dS(N(tjsont JSONDecodertdecodertJSONEncoderForHTMLtencoder(tself((sK/usr/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pytsetUpscCsX|jd|jjdƒƒ|jd|jjdƒƒ|jd|jjdƒƒdS(Ns"\u0026"t&s"\u003c"t(t assertEqualRtencode(R((sK/usr/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyttest_basic_encode scCs=x6dD].}|j||jj|jj|ƒƒƒqWdS(Ns&<>(R RtdecodeRR (Rtchar((sK/usr/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyttest_basic_roundtrips  cCsNd}|jd|jj|ƒƒ|j||jj|jj|ƒƒƒdS(Ns)sK"\u003c/script\u003e\u003cscript\u003ealert(\"gotcha\")\u003c/script\u003e"(R RR RR(Rt bad_string((sK/usr/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyttest_prevent_script_breakouts (t__name__t __module__RR RR(((sK/usr/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyRs   (tunittestt simplejsonRtTestCaseR(((sK/usr/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyts