tests/SyFi_polygons/test.py
Go to the documentation of this file.00001
00002
00003 import unittest
00004
00005 import SyFi
00006
00007
00008 class MyTest(unittest.TestCase):
00009 def setUp(self):
00010
00011
00012 self.foo = 1
00013
00014 def tearDown(self):
00015
00016
00017 del self.foo
00018
00019 def testSetup(self):
00020
00021
00022 assert self.foo
00023
00024 def testMyStuff(self):
00025
00026
00027 assert 1
00028
00029 def testFailureExample(self):
00030 assert 1
00031
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