Back to index

plone3  3.1.7
testSkeleton.py
Go to the documentation of this file.
00001 #
00002 # Skeleton TestCase
00003 #
00004 
00005 import os, sys
00006 if __name__ == '__main__':
00007     execfile(os.path.join(sys.path[0], 'framework.py'))
00008 
00009 from Testing import ZopeTestCase
00010 
00011 ZopeTestCase.installProduct('ExtendedPathIndex')
00012 
00013 
00014 class TestSomething(ZopeTestCase.ZopeTestCase):
00015 
00016     def afterSetUp(self):
00017         pass
00018 
00019     def testSomething(self):
00020         # Test something
00021         self.failUnless(1==1)
00022 
00023 
00024 def test_suite():
00025     from unittest import TestSuite, makeSuite
00026     suite = TestSuite()
00027     suite.addTest(makeSuite(TestSomething))
00028     return suite
00029 
00030 if __name__ == '__main__':
00031     framework()