コード例 #1
0
 def testEscapeStringWithSingleQuote(self):
     self.assertTrue(utils.html_escape("""This "is" a 'test'"""), "This "is" a 'test'")
コード例 #2
0
 def testEscapeStringsWithDoubleQuotes(self):
     self.assertTrue(utils.html_escape('This is a "test"'), "This is a "test"")