Ignore:
Timestamp:
Apr 26, 2009, 8:36:31 AM (14 years ago)
Author:
rwilson
Message:

Back-merge from main trunk and ongoing Patong Beach changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy_anuga_validation/automated_validation_tests/okushiri_tank_validation/validate_okushiri.py

    r5183 r6905  
    1313        for file in os.listdir('.'):
    1414            if file.endswith('.stdout') or\
    15                file.endswith('.sww') or\
    16                file.endswith('.msh'):
     15                    file.endswith('.sww') or\
     16                    file.endswith('.msh'):
    1717                os.remove(file)
    1818               
    19        
     19               
    2020    def tearDown(self):
    2121        pass
    2222
    2323    def test_that_output_is_as_expected(self):
    24 
     24        """Test that ANUGA replicates physics of the Okushiri Island
     25        wave tank experiment
     26        """
    2527       
    2628        #print
     
    4143                        %s)
    4244        assert res == 0
     45
     46
     47    def test_caching_of_set_quantity(self):
     48        """Test that caching of set_quantity works
     49        """
     50       
     51        s = 'create_okushiri.py'
     52        res = os.system('python %s > create_okushiri_for_caching.stdout' %s)
     53        assert res == 0
     54
     55
     56        s = 'test_caching_of_set_quantity.py'
     57        res = os.system('python %s > test_caching_of_set_quantity.stdout' %s)
     58        assert res == 0
     59
     60       
    4361
    4462    def manual_test_that_output_is_as_expected(self):
     
    6583#-------------------------------------------------------------
    6684if __name__ == "__main__":
    67     suite = unittest.makeSuite(Test_Okushiri,'test')
     85    suite = unittest.makeSuite(Test_Okushiri, 'test')
    6886    runner = unittest.TextTestRunner(verbosity=2)
    6987    runner.run(suite)
Note: See TracChangeset for help on using the changeset viewer.