[Zope-Checkins]
SVN: Zope/branches/2.10/lib/python/reStructuredText/tests/testReST.py
more tests for csv-table directive
Andreas Jung
andreas at andreas-jung.com
Sat Jul 29 09:35:00 EDT 2006
Log message for revision 69291:
more tests for csv-table directive
Changed:
U Zope/branches/2.10/lib/python/reStructuredText/tests/testReST.py
-=-
Modified: Zope/branches/2.10/lib/python/reStructuredText/tests/testReST.py
===================================================================
--- Zope/branches/2.10/lib/python/reStructuredText/tests/testReST.py 2006-07-29 12:59:31 UTC (rev 69290)
+++ Zope/branches/2.10/lib/python/reStructuredText/tests/testReST.py 2006-07-29 13:34:59 UTC (rev 69291)
@@ -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),))
More information about the Zope-Checkins
mailing list