Line | |
---|
1 | """Automatic verification of ANUGA flows. |
---|
2 | See functions exercised by this wrapper for more details |
---|
3 | """ |
---|
4 | |
---|
5 | import unittest |
---|
6 | import os |
---|
7 | |
---|
8 | |
---|
9 | class Test_flow(unittest.TestCase): |
---|
10 | def setUp(self): |
---|
11 | for file in os.listdir('.'): |
---|
12 | if file.endswith('.stdout') or\ |
---|
13 | file.endswith('.sww') or\ |
---|
14 | file.endswith('.msh'): |
---|
15 | os.remove(file) |
---|
16 | |
---|
17 | |
---|
18 | def tearDown(self): |
---|
19 | pass |
---|
20 | |
---|
21 | def test_inflow_using_flowline(self): |
---|
22 | """Exercise Ted Rigby's test of steady state flows |
---|
23 | and Manning depth |
---|
24 | """ |
---|
25 | |
---|
26 | #print |
---|
27 | s = 'test_inflow_using_flowline.py' |
---|
28 | #print s |
---|
29 | res = os.system('python %s > test_inflow_using_flowline.stdout' %s) |
---|
30 | assert res == 0 |
---|
31 | |
---|
32 | |
---|
33 | #------------------------------------------------------------- |
---|
34 | if __name__ == '__main__': |
---|
35 | suite = unittest.makeSuite(Test_flow, 'test') |
---|
36 | runner = unittest.TextTestRunner(verbosity=2) |
---|
37 | runner.run(suite) |
---|
Note: See
TracBrowser
for help on using the repository browser.