source: anuga_validation/automated_validation_tests/UQ_runup_2006/validate_uq_runup.py @ 4842

Last change on this file since 4842 was 4842, checked in by duncan, 16 years ago

working on validation changes

File size: 844 bytes
Line 
1"""Automatic verification that the ANUGA code validates against the UQ runup
2dataset as expected.
3"""
4
5import unittest
6import os
7
8import run_dam
9
10class 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#-------------------------------------------------------------
30if __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.