Commits

Anonymous committed 40dcfd7

[svn] cdata_section test

  • Participants
  • Parent commits 72c3d65

Comments (0)

Files changed (1)

File tests/test_tag.py

 
     def test_escape_once(self):
         self.assertEqual("1 &lt; 2 &amp; 3", escape_once("1 < 2 &amp; 3"))
+
+    def test_cdata_section(self):
+        self.assertEqual('<![CDATA[Hello]]>', cdata_section('Hello'))
+        self.assertEqual('<![CDATA[]]>', cdata_section(None))
     
         
 if __name__ == '__main__':