Log message for revision 69287: some more tests for csv-table directive
Changed: U Zope/trunk/lib/python/reStructuredText/tests/testReST.py -=- Modified: Zope/trunk/lib/python/reStructuredText/tests/testReST.py =================================================================== --- Zope/trunk/lib/python/reStructuredText/tests/testReST.py 2006-07-28 19:14:25 UTC (rev 69286) +++ Zope/trunk/lib/python/reStructuredText/tests/testReST.py 2006-07-29 12:29:16 UTC (rev 69287) @@ -108,6 +108,20 @@ source = '.. raw:: html\n :url: http://www.zope.org' self.assertRaises(NotImplementedError, HTML, source) + + def test_csv_table_file_option_raise(self): + + source = '.. csv-table:: \n :file: inclusion.txt' + result = HTML(source) + self.failUnless('File and URL access deactivated' in result) + + def test_csv_table_file_option_raise(self): + + source = '.. csv-table:: \n :url: http://www.evil.org' + result = HTML(source) + self.failUnless('File and URL access deactivated' in result) + + def test_suite(): from unittest import TestSuite, makeSuite return TestSuite((makeSuite(TestReST),)) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins