Changeset 9445


Ignore:
Timestamp:
Jan 20, 2015, 9:27:06 PM (10 years ago)
Author:
steve
Message:

Cleanup of test functions for operators

Location:
trunk/anuga_core/source/anuga/operators
Files:
23 moved

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/operators/test/test_boundary_flux_integral_operator.py

    r9442 r9445  
    22import anuga
    33import numpy
     4import os
    45
    56boundaryPolygon=[ [0., 0.], [0., 100.], [100.0, 100.0], [100.0, 0.0]]
     
    1213
    1314    def tearDown(self):
    14         pass
     15        try:
     16            os.remove('test_boundaryfluxintegral.msh')
     17        except:
     18            pass
     19
     20
     21        try:
     22            os.remove('test_boundaryfluxintegral.sww')
     23        except:
     24            pass
    1525
    1626    def create_domain(self, flowalg):
  • trunk/anuga_core/source/anuga/operators/test/test_kinematic_viscosity_operator.py

    r9442 r9445  
    88from math import sqrt
    99import unittest
     10import os
    1011
    1112class Test_kinematic_viscosity(unittest.TestCase):
     
    1516
    1617    def tearDown(self):
    17         pass
    18    
     18        try:
     19            os.remove('domain.sww')
     20        except:
     21            pass
     22
     23        try:
     24            os.remove('anuga.log')
     25        except:
     26            pass
     27       
    1928    #First test operator class (1 triangle)
    2029    def operator1(self):
  • trunk/anuga_core/source/anuga/operators/test/test_rate_operators.py

    r9442 r9445  
    2323import warnings
    2424import time
     25import os
    2526
    2627
     
    3334
    3435    def tearDown(self):
    35         pass
     36        try:
     37            os.remove('test_file_function.txt')
     38        except:
     39            pass
     40
     41        try:
     42            os.remove('test_file_function.tms')
     43        except:
     44            pass
    3645
    3746
Note: See TracChangeset for help on using the changeset viewer.