Back to index

plone3  3.1.7
test_doctests.py
Go to the documentation of this file.
00001 import unittest
00002 from zope.testing import doctest
00003 
00004 class DummyFile(object):
00005     """A sized object"""
00006     def __init__(self, size):
00007         self.size = size
00008 
00009     def getSize(self):
00010         return self.size
00011 
00012 
00013 class DummyContent(object):
00014     """An object with annotations"""
00015 
00016     def __init__(self, obid):
00017         self.id = obid
00018         self.__annotations__ = {}
00019 
00020 
00021 def test_suite():
00022     res = unittest.TestSuite((
00023         doctest.DocFileSuite('large_file_modifiers.txt'),
00024         ))
00025     return res
00026 
00027 if __name__ == '__main__':
00028     unittest.main(defaultTest='test_suite')