source: anuga_validation/automated_validation_tests/patong_beach_validation/validate_patong_scenario.py @ 7653

Last change on this file since 7653 was 7653, checked in by ole, 14 years ago

Started a proper unit test framework for Patong

File size: 1.1 KB
Line 
1"""Automatic verification of ANUGA using Patong Beach validation scenario.
2See functions exercised by this wrapper for more details and also the publication (TBA).
3"""
4
5import unittest
6import os
7
8
9class 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 Patong Validation Scenario for three resolutions and
23        compare timeseries from modelled results against reference model.
24        """
25       
26        #print
27        s = 'test_patong_scenario.py'
28        #print s
29        res = os.system('python %s > test_patong_scenario.stdout' % s)
30        assert res == 0
31
32
33#-------------------------------------------------------------
34if __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.