Last change
on this file since 6706 was
6705,
checked in by ole, 16 years ago
|
Added Ted's inflow and Manning tests to validation suite.
|
File size:
942 bytes
|
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 | if file.endswith('.stdout') or\ |
---|
12 | file.endswith('.sww') or\ |
---|
13 | file.endswith('.msh'): |
---|
14 | os.remove(file) |
---|
15 | |
---|
16 | |
---|
17 | def tearDown(self): |
---|
18 | pass |
---|
19 | |
---|
20 | def test_inflow_using_flowline(self): |
---|
21 | """Exercise Ted Rigby's test of steady state flows |
---|
22 | and Manning depth |
---|
23 | """ |
---|
24 | |
---|
25 | #print |
---|
26 | s = 'test_inflow_using_flowline.py' |
---|
27 | #print s |
---|
28 | res = os.system('python %s > test_inflow_using_flowline.stdout' %s) |
---|
29 | assert res == 0 |
---|
30 | |
---|
31 | |
---|
32 | #------------------------------------------------------------- |
---|
33 | if __name__ == '__main__': |
---|
34 | suite = unittest.makeSuite(Test_flow, 'test') |
---|
35 | runner = unittest.TextTestRunner(verbosity=2) |
---|
36 | runner.run(suite) |
---|
Note: See
TracBrowser
for help on using the repository browser.