• File: test_encode_for_html.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyo
  • Date Modified: 07/22/2015 10:57 PM
  • File size: 1.95 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

UzMc@sAddlZddlZddlZdejfdYZdS(iNtTestEncodeForHTMLcBs,eZdZdZdZdZRS(cCs(tjj|_tjj|_dS(N(t
simplejsontdecodertJSONDecodertencodertJSONEncoderForHTML(tself((sX/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pytsetUp	scCsX|jd|jjd|jd|jjd|jd|jjddS(Ns"\u0026"t&s"\u003c"t<s"\u003e"t>(tassertEqualRtencode(R((sX/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyttest_basic_encode
scCs=x6dD].}|j||jj|jj|qWdS(Ns&<>(RRtdecodeRR(Rtchar((sX/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyttest_basic_roundtrips
cCsNd}|jd|jj||j||jj|jj|dS(Ns)</script><script>alert("gotcha")</script>sK"\u003c/script\u003e\u003cscript\u003ealert(\"gotcha\")\u003c/script\u003e"(RRRRR(Rt
bad_string((sX/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyttest_prevent_script_breakouts(t__name__t
__module__RR
RR(((sX/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyRs			(tunittesttsimplejson.decoderRtsimplejson.encodertTestCaseR(((sX/opt/alt/python27/lib64/python2.7/site-packages/simplejson/tests/test_encode_for_html.pyt<module>s