SyFi  0.3
tests/SyFi_polygons/test.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import unittest
00004 
00005 import SyFi
00006 
00007 
00008 class MyTest(unittest.TestCase):
00009     def setUp(self):
00010         # initialize stuff
00011         #debug("setUp")
00012         self.foo = 1
00013     
00014     def tearDown(self):
00015         # delete initialized stuff
00016         #debug("tearDown")
00017         del self.foo
00018     
00019     def testSetup(self):
00020         # test initialized stuff
00021         #debug("testSetup")
00022         assert self.foo
00023     
00024     def testMyStuff(self):
00025         # test whatever meant by "MyStuff"
00026         #debug("testMyStuff")
00027         assert 1
00028     
00029     def testFailureExample(self):
00030         assert 1
00031         #assert 0 # uncomment to see how a failure looks like
00032 
00033 
00034 def test(verbosity=0):
00035     classes = [MyTest]
00036     suites = [unittest.makeSuite(c) for c in classes]
00037     testsuites = unittest.TestSuite(suites)
00038     unittest.TextTestRunner(verbosity=verbosity).run(testsuites)
00039 
00040 if __name__ == "__main__":
00041     test()
00042 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines