/[escript]/trunk/downunder/test/python/run_datasources.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_datasources.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4016 by caltinay, Tue Oct 9 03:50:27 2012 UTC revision 4019 by jfenwick, Thu Oct 11 08:12:55 2012 UTC
# Line 81  class TestERSDataSource(unittest.TestCas Line 81  class TestERSDataSource(unittest.TestCas
81          # this test only works if gdal is available          # this test only works if gdal is available
82          try:          try:
83              import osgeo.osr              import osgeo.osr
84              for i in xrange(len(ERS_ORIGIN)):              for i in range(len(ERS_ORIGIN)):
85                  self.assertAlmostEqual(X0[i], ERS_ORIGIN[i], msg="Data origin wrong")                  self.assertAlmostEqual(X0[i], ERS_ORIGIN[i], msg="Data origin wrong")
86          except ImportError:          except ImportError:
87              print("Skipping test of data origin since gdal is not installed.")              print("Skipping test of data origin since gdal is not installed.")
# Line 132  class TestNetCDFDataSource(unittest.Test Line 132  class TestNetCDFDataSource(unittest.Test
132          # this only works if gdal is available          # this only works if gdal is available
133          try:          try:
134              import osgeo.osr              import osgeo.osr
135              for i in xrange(len(NC_ORIGIN)):              for i in range(len(NC_ORIGIN)):
136                  self.assertAlmostEqual(X0[i], NC_ORIGIN[i], msg="Data origin wrong")                  self.assertAlmostEqual(X0[i], NC_ORIGIN[i], msg="Data origin wrong")
137          except ImportError:          except ImportError:
138              print("Skipping test of data origin since gdal is not installed.")              print("Skipping test of data origin since gdal is not installed.")

Legend:
Removed from v.4016  
changed lines
  Added in v.4019

  ViewVC Help
Powered by ViewVC 1.1.26