Beispiel #1
0
 def test_all_rs2_files(self):
     testData = DataForTestingMappers()
     testData.download_all_test_data()
     for rsfile in testData.mapperData['radarsat2']:
         # OBS: do not yield functions that have the word 'test' in
         # their names - these are run automatically by nose...
         yield self.incidence_angle, rsfile
         #yield self.export2thredds, rsfile
         yield self.export, rsfile
Beispiel #2
0
 def test_specific_mapper(self):
     ''' Should open all downloaded files with automatically selected mapper '''
     testData = DataForTestingMappers()
     testData.download_all_test_data()
     for mapperName in testData.mapperData:
         mapperFiles = testData.mapperData[mapperName]
         for mapperFile in mapperFiles:
             print mapperName, '->', mapperFile
             # OBS: do not yield functions that have the word 'test' in
             # their names - these are run automatically by nose...
             yield self.open_with_specific_mapper, mapperFile, mapperName
Beispiel #3
0
 def test_specific_mapper(self):
     """ Should open all downloaded files with automatically selected mapper """
     testData = DataForTestingMappers()
     testData.download_all_test_data()
     for mapperName in testData.mapperData:
         mapperFiles = testData.mapperData[mapperName]
         for mapperFile in mapperFiles:
             print mapperName, "->", mapperFile
             # OBS: do not yield functions that have the word 'test' in
             # their names - these are run automatically by nose...
             yield self.open_with_specific_mapper, mapperFile, mapperName
Beispiel #4
0
 def test_automatic_mapper(self):
     """ Should open all downloaded files with automatically selected mapper """
     testData = DataForTestingMappers()
     testData.download_all_test_data()
     for mapper in testData.mapperData:
         mapperFiles = testData.mapperData[mapper]
         for mapperFile in mapperFiles:
             print mapperFile
             # OBS: do not yield functions that have the word 'test' in
             # their names - these are run automatically by nose...
             yield self.open_with_automatic_mapper, mapperFile
             yield self.geolocation_of_exportedNC_vs_original, mapperFile
Beispiel #5
0
 def test_automatic_mapper(self):
     ''' Should open all downloaded files with automatically selected mapper '''
     testData = DataForTestingMappers()
     testData.download_all_test_data()
     for mapper in testData.mapperData:
         mapperFiles = testData.mapperData[mapper]
         for mapperFile in mapperFiles:
             print mapperFile
             # OBS: do not yield functions that have the word 'test' in
             # their names - these are run automatically by nose...
             yield self.open_with_automatic_mapper, mapperFile
             yield self.geolocation_of_exportedNC_vs_original, \
                     mapperFile