Changeset 3097


Ignore:
Timestamp:
Jun 6, 2006, 12:25:25 PM (18 years ago)
Author:
duncan
Message:

Fixed some tests

Location:
inundation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/test_mesh.py

    r3013 r3097  
    99    from mesh import *
    1010   
    11 from mesh import *
    1211from load_mesh.loadASCII import *
    1312from coordinate_transforms.geo_reference import Geo_reference
    14 from utilities.polygon import inside_polygon
     13from utilities.polygon import  is_inside_polygon ### inside_polygon
    1514
    1615class meshTestCase(unittest.TestCase):
     
    15841583    def test_Discretised_Tuple_Set_rounding(self):
    15851584        #This is the hardest bit of DST
    1586         from mesh import Discretised_Tuple_Set
    15871585
    15881586        tol = 0.1
     
    16191617
    16201618    def test_Discretised_Tuple_Set_get(self):
    1621         from mesh import Discretised_Tuple_Set
     1619       
    16221620        tol = 0.25
    16231621        a=Discretised_Tuple_Set(p_rel=1,t_rel = tol)
     
    16351633
    16361634    def test_mapped_Discretised_Tuple_Set(self):
    1637 
    1638         from mesh import Mapped_Discretised_Tuple_Set
    1639         from mesh import Discretised_Tuple_Set
    16401635
    16411636        def map(sequence):
     
    17131708        # poly_point values are relative to the mesh geo-ref
    17141709        # make them absolute
    1715         self.failUnless(inside_polygon([poly_point.x+x,poly_point.y+y],
     1710        self.failUnless(is_inside_polygon([poly_point.x+x,poly_point.y+y],
    17161711                                       polygon_absolute, closed = False),
    17171712                        'FAILED!')
     
    18111806        # make them absolute
    18121807        #print "poly_point.x+x",poly_point.x+x
     1808        #print "poly_point.y+y",poly_point.y+y
    18131809        #print "polygon_absolute", polygon_absolute
    1814         self.failUnless(inside_polygon([poly_point.x+x,poly_point.y+y],
     1810        self.failUnless(is_inside_polygon([poly_point.x+x,poly_point.y+y],
    18151811                                       polygon_absolute, closed = False),
    18161812                        'FAILED!')
     
    20001996if __name__ == "__main__":
    20011997    suite = unittest.makeSuite(meshTestCase,'test')
    2002     #suite = unittest.makeSuite(meshTestCase,'test_duplicat_verts_do_what')
     1998    #suite = unittest.makeSuite(meshTestCase,'test_add_hole_from_polygon')
    20031999    runner = unittest.TextTestRunner() #verbosity=2)
    20042000    runner.run(suite)
  • inundation/test_all.py

    r3093 r3097  
    1818exclude_files = ['test_metis.py', 'test_version.py', 'test_parallel_sw.py',
    1919                 'test_advection.py', # removing this test for a bit
    20                  'test_mesh.py', # bug fixing
     20                 #'test_mesh.py', # bug fixing
    2121                 'test_interpolate_sww.py' # this test is obsolete
    2222                 ]
Note: See TracChangeset for help on using the changeset viewer.