Changeset 3302
- Timestamp:
- Jul 11, 2006, 2:07:49 PM (19 years ago)
- Location:
- inundation/geospatial_data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/geospatial_data/geospatial_data.py
r3297 r3302 130 130 self.set_default_attribute_name(default_attribute_name) 131 131 132 132 def __len__(self): 133 return len(self.data_points) 134 133 135 def check_data_points(self, data_points): 134 136 """Checks data points -
inundation/geospatial_data/test_geospatial_data.py
r3297 r3302 1329 1329 self.failUnless(0 ==1, 'Error not thrown error!') 1330 1330 1331 def test_len(self): 1332 1333 points = [[1.0, 2.1], [3.0, 5.3]] 1334 G = Geospatial_data(points) 1335 self.failUnless(2 ==len(G), 'Len error!') 1336 1337 points = [[1.0, 2.1]] 1338 G = Geospatial_data(points) 1339 self.failUnless(1 ==len(G), 'Len error!') 1340 1341 points = [[1.0, 2.1], [3.0, 5.3], [3.0, 5.3], [3.0, 5.3]] 1342 G = Geospatial_data(points) 1343 self.failUnless(4 ==len(G), 'Len error!') 1344 1331 1345 if __name__ == "__main__": 1332 1346
Note: See TracChangeset
for help on using the changeset viewer.