source: trunk/anuga_validation/automated_validation_tests/flow_tests/validate_flow.py @ 7877

Last change on this file since 7877 was 7877, checked in by hudson, 14 years ago

Moved all development files into trunk.

File size: 997 bytes
Line 
1"""Automatic verification of ANUGA flows.
2See functions exercised by this wrapper for more details
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 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#-------------------------------------------------------------
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.