Changeset 8125 for trunk/anuga_core/source/anuga/pmesh/test_meshquad.py
- Timestamp:
- Mar 4, 2011, 2:34:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/pmesh/test_meshquad.py
r7861 r8125 7 7 from anuga.abstract_2d_finite_volumes.general_mesh import General_mesh as Mesh 8 8 9 import types,sys9 import sys 10 10 11 11 #------------------------------------------------------------- … … 44 44 # test a point that falls within a triangle 45 45 result = Q.search([10, 10]) 46 assert type(result) in [types.ListType,types.TupleType],\ 47 'should be a list' 46 assert isinstance(result, (list, tuple)), 'should be a list' 48 47 49 48 self.assertEqual(result[0][0][0], 1)
Note: See TracChangeset
for help on using the changeset viewer.