made it so I can call all tests at once

--HG--
rename : test/2dcubic.py => test/cubic2d.py
rename : test/2dquadratic.py => test/quadratic2d.py
This commit is contained in:
sm
2011-02-15 11:27:45 -07:00
parent 6bc5908a9b
commit 9827035e72
8 changed files with 40 additions and 14 deletions
Executable → Regular
+2 -2
View File
@@ -8,7 +8,7 @@ from interp import grid
import numpy as np
import scipy.spatial
class TestSequenceFunctions(unittest.TestCase):
class Test(unittest.TestCase):
def setUp(self):
self.l = [[-1, 1], [-1, 0], [-1, 1], [0, -1], [0, 0], [0, 1], [1, -1], [1, 0], [1, 1]]
self.all_points = [
@@ -153,5 +153,5 @@ class TestSequenceFunctions(unittest.TestCase):
self.assertAlmostEqual(c, cc)
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequenceFunctions)
suite = unittest.TestLoader().loadTestsFromTestCase(Test)
unittest.TextTestRunner(verbosity=3).run(suite)