[CMF-checkins] CVS: CMF - test_Document.py:1.5

Jeffrey Shell jeffrey@digicool.com
Mon, 21 May 2001 17:58:37 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/tests
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault/tests

Modified Files:
	test_Document.py 
Log Message:
in test_StructuredText(), added assertions that extra HTML (title,
body tags) were NOT being places into the cooked_text.



--- Updated File test_Document.py in package CMF --
--- test_Document.py	2001/05/19 19:01:43	1.4
+++ test_Document.py	2001/05/21 21:58:36	1.5
@@ -97,6 +97,10 @@
         assert len(d.Contributors()) == 3
         assert string.find(d.cooked_text, '<p>') >= 0
 
+        # Make sure extra HTML is NOT found
+        assert string.find(d.cooked_text, '<title>') == -1, d.cooked_text
+        assert string.find(d.cooked_text, '<body>') == -1, d.cooked_text
+
     def test_Init(self):
         d = Document('foo', text=BASIC_STRUCTUREDTEXT)
         assert d.Format() == 'text/plain'