Last change
on this file since 7877 was
7877,
checked in by hudson, 13 years ago
|
Moved all development files into trunk.
|
File size:
844 bytes
|
Line | |
---|
1 | """Automatic verification that the ANUGA code validates against the UQ runup |
---|
2 | dataset as expected. |
---|
3 | """ |
---|
4 | |
---|
5 | import unittest |
---|
6 | import os |
---|
7 | |
---|
8 | import run_dam |
---|
9 | |
---|
10 | class Test_uq(unittest.TestCase): |
---|
11 | def setUp(self): |
---|
12 | pass |
---|
13 | |
---|
14 | |
---|
15 | def tearDown(self): |
---|
16 | # Remove garbage |
---|
17 | for file in os.listdir('.'): |
---|
18 | if file.endswith('.stdout') or\ |
---|
19 | file.endswith('.tsh'): |
---|
20 | os.remove(file) |
---|
21 | |
---|
22 | def test_that_UQ_output_is_as_expected(self): |
---|
23 | norm = run_dam.main() |
---|
24 | #print "norm",norm |
---|
25 | self.failUnless(norm <= 0.083, |
---|
26 | 'Validation fail.') |
---|
27 | |
---|
28 | |
---|
29 | #------------------------------------------------------------- |
---|
30 | if __name__ == "__main__": |
---|
31 | suite = unittest.makeSuite(Test_uq,'test') |
---|
32 | runner = unittest.TextTestRunner(verbosity=2) |
---|
33 | runner.run(suite) |
---|
Note: See
TracBrowser
for help on using the repository browser.