Changeset 4224
- Timestamp:
- Feb 6, 2007, 2:35:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/test_geospatial_data.py
r4223 r4224 2028 2028 2029 2029 points = gsd.get_data_points(absolute=True) 2030 2031 assert allclose(points[0][0], 308728.009) 2032 assert allclose(points[0][1], 6180432.601) 2033 assert allclose(points[1][0], 222908.705) 2034 assert allclose(points[1][1], 6233785.284) 2030 #print "points[0][0]", points[0][0] 2031 #Note the order is unknown, due to using sets 2032 assert allclose(points[1][0], 308728.009) 2033 assert allclose(points[1][1], 6180432.601) 2034 assert allclose(points[0][0], 222908.705) 2035 assert allclose(points[0][1], 6233785.284) 2035 2036 self.failUnless(gsd.get_geo_reference().get_zone() == 56, 2036 2037 'Bad zone error!') 2037 2038 points = gsd.get_data_points(as_lat_long=True) 2038 2039 #print "test_lat_long_set points", points 2039 assert allclose(points[ 1][0], -34)2040 assert allclose(points[ 1][1], 150)2040 assert allclose(points[0][0], -34) 2041 assert allclose(points[0][1], 150) 2041 2042 2042 2043 def test_len(self): … … 2084 2085 if __name__ == "__main__": 2085 2086 2086 suite = unittest.makeSuite(Test_Geospatial_data, 'test_lat_long_set')2087 #suite = unittest.makeSuite(Test_Geospatial_data, 'test_lat_long_set') 2087 2088 #suite = unittest.makeSuite(Test_Geospatial_data, 'verbose_test_load_pts_blocking') 2088 #suite = unittest.makeSuite(Test_Geospatial_data, 'test')2089 suite = unittest.makeSuite(Test_Geospatial_data, 'test') 2089 2090 runner = unittest.TextTestRunner() 2090 2091 runner.run(suite)
Note: See TracChangeset
for help on using the changeset viewer.