Changeset 6520


Ignore:
Timestamp:
Mar 16, 2009, 1:35:50 PM (15 years ago)
Author:
ole
Message:

Removed print statements and reinstated assertions in tests for nonstandard projections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/coordinate_transforms/test_redfearn.py

    r6519 r6520  
    308308                                                   zone=forced_zone)
    309309               
    310                 print
    311                 print 'Lat', lat
    312                 print 'Lon', lon
    313                 print 'Zone', zone
    314                 print 'Ref x', x, 'Computed x', easting, 'Close enough:', num.allclose(x, easting)
    315                 print 'Ref y', y, 'Computed y', northing, 'Close enough:', num.allclose(y, northing)
    316                
    317310                # Check calculation
    318311                assert zone == forced_zone
    319                 print
    320                 #assert num.allclose(x, easting)
    321                 #assert num.allclose(y, northing)
     312                assert num.allclose(x, easting)
     313                assert num.allclose(y, northing)
    322314
    323315   
     
    353345                                               scale_factor=0.9996)
    354346
    355             print
    356             print 'Lat', lat
    357             print 'Lon', lon
    358             print 'Zone', zone
    359             print 'Ref x', x, 'Computed x', easting, 'Close enough:', num.allclose(x, easting)
    360             print 'Ref y', y, 'Computed y', northing, 'Close enough:', num.allclose(y, northing)
    361 
    362             # Check calculation
    363347            assert zone == -1 # Indicates non UTM projection
    364             print
    365             #assert num.allclose(x, easting)
    366             #assert num.allclose(y, northing)
     348            assert num.allclose(x, easting)
     349            assert num.allclose(y, northing)
    367350
    368351        # Test that zone and meridian can't both be specified
     
    524507if __name__ == "__main__":
    525508
    526     #mysuite = unittest.makeSuite(TestCase,'test_convert_latlon_to_UTM1')
    527     mysuite = unittest.makeSuite(TestCase,'test_nonstandard_meridian_coinciding_with_native')
    528     #mysuite = unittest.makeSuite(TestCase,'test')
     509    mysuite = unittest.makeSuite(TestCase,'test')
    529510    runner = unittest.TextTestRunner()
    530511    runner.run(mysuite)
Note: See TracChangeset for help on using the changeset viewer.