Exemplo n.º 1
0
 def test_browser(self):
     s = []
     for i in range(128):
         s += unichr(i)
     s = utils.jsquote("".join(s))
     t = JSQPage("")
     t.render(
         "jsquote.html",
         "jsquote.html",
         a = "".join([chr(i) for i in range(128)]),
         bin = s
     )
Exemplo n.º 2
0
 def test_one(self):
     assert utils.jsquote("") == ""
     assert utils.jsquote("a") == "a"
     assert utils.jsquote(r'"') == r'\"'