Changeset 6905 for branches/numpy_anuga_validation/automated_validation_tests/okushiri_tank_validation/validate_okushiri.py
- Timestamp:
- Apr 26, 2009, 8:36:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy_anuga_validation/automated_validation_tests/okushiri_tank_validation/validate_okushiri.py
r5183 r6905 13 13 for file in os.listdir('.'): 14 14 if file.endswith('.stdout') or\ 15 file.endswith('.sww') or\16 file.endswith('.msh'):15 file.endswith('.sww') or\ 16 file.endswith('.msh'): 17 17 os.remove(file) 18 18 19 19 20 20 def tearDown(self): 21 21 pass 22 22 23 23 def test_that_output_is_as_expected(self): 24 24 """Test that ANUGA replicates physics of the Okushiri Island 25 wave tank experiment 26 """ 25 27 26 28 #print … … 41 43 %s) 42 44 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 43 61 44 62 def manual_test_that_output_is_as_expected(self): … … 65 83 #------------------------------------------------------------- 66 84 if __name__ == "__main__": 67 suite = unittest.makeSuite(Test_Okushiri, 'test')85 suite = unittest.makeSuite(Test_Okushiri, 'test') 68 86 runner = unittest.TextTestRunner(verbosity=2) 69 87 runner.run(suite)
Note: See TracChangeset
for help on using the changeset viewer.