Commits

Rick Copeland committed 2f3fad7

Added XML processing instructions

  • Participants
  • Parent commits cf97ece

Comments (0)

Files changed (1)

fastpt/tests/v2/test_xml.py

         rsp = tpl(dict(name='Rick')).__fpt__.render()
         assert rsp == '<div>a/b/c</div>'
 
+class TestComment(TestCase):
+
+    def test_basic(self):
+        tpl = XMLTemplate('''<div>
+<!-- This comment is preserved. -->
+<!--! This comment is stripped. -->
+</div>''')
+        rsp = tpl(dict(name='Rick')).__fpt__.render()
+        print rsp
+        
+
 if __name__ == '__main__':
     main()