Back to index

plone3  3.1.7
test_rendering.py
Go to the documentation of this file.
00001 import os, sys, time
00002 import unittest
00003 from sets import Set
00004 import traceback
00005 
00006 from Testing import ZopeTestCase
00007 from wickedtestcase import WickedTestCase, makeContent
00008 from wicked.normalize import titleToNormalizedId
00009 from wicked.config import BACKLINK_RELATIONSHIP
00010 
00011 stx_body = """
00012 Here is some structured text data:
00013 
00014 - with
00015 
00016 - a
00017 
00018 - bulleted
00019 
00020 - list
00021 """
00022 
00023 class TestWickedRendering(WickedTestCase):
00024     # an untest? 
00025     wicked_type = 'IronicWiki'
00026     wicked_field = 'body'
00027     
00028     def test_stxRendering(self):
00029         self.set_text(self.page1, stx_body, mimetype='text/structured')
00030         self.failUnless('<ul>' in self.page1.getBody())
00031 
00032 def test_suite():
00033     from wicked.at.link import test_suite as doctests
00034     suite = unittest.TestSuite()
00035     suite.addTest(unittest.makeSuite(TestWickedRendering))
00036     suite.addTest(doctests())
00037     return suite
00038