Changeset 5188 for ndgCommon/trunk


Ignore:
Timestamp:
08/04/09 16:02:39 (10 years ago)
Author:
cbyrom
Message:

Delete original granulator codebase and associated code and create new
granulator script in the ndgcommon tools package, where it more
logically sits. Add new README with up to date details and update
tests.

Location:
ndgCommon/trunk/ndg/common
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/unittests/lib/testgranulite.py

    r5185 r5188  
    7171         
    7272         
    73     def otestDuplicateProcessGranulite(self): 
     73    def testDuplicateProcessGranulite(self): 
    7474        atom = None 
    7575        try: 
     
    8989            self.deleteGranuliteDEs() 
    9090         
    91     def otestProcessCSMLOrCDMLFile(self): 
     91    def testProcessCSMLOrCDMLFile(self): 
    9292        try: 
    9393            atom = self.g.processCSMLOrCDMLFile() 
     
    9797         
    9898         
    99     def otestGetSectionName(self): 
     99    def testGetSectionName(self): 
    100100        sectionName = "parameters" 
    101101        foundName = self.g._granulite__getSectionName(sectionName + "::") 
    102102        self.assertEqual(sectionName, foundName) 
    103103         
    104     def otestGetInvalidSectionName(self): 
     104    def testGetInvalidSectionName(self): 
    105105        sectionName = "parameters" 
    106106        foundName = self.g._granulite__getSectionName(sectionName) 
    107107        self.assertEqual(None, foundName) 
    108108         
    109     def otestInitialiseGranule(self): 
     109    def testInitialiseGranule(self): 
    110110        self.g._granulite__initialiseGranule() 
    111111        self.assertNotEqual(None, self.g._atom) 
     
    116116         
    117117 
    118     def otestGetGranuliteDetails(self): 
     118    def testGetGranuliteDetails(self): 
    119119        details = self._initGranule() 
    120120        self.assertEqual(tc.GRANULITE_TITLE, details['granule_info'][0].split('|')[2].strip()) 
     
    122122        self.assertEqual(tc.GRANULITE_CDML_DATASETID, details['cdml_file'][0].split('|')[1].strip()) 
    123123 
    124     def otestApplyCoreGranuliteDetails(self): 
     124    def testApplyCoreGranuliteDetails(self): 
    125125        details = self._initGranule() 
    126126        self.g.ingestGranuliteFiles = False # don't worry about reading in CSML/CDML data 
     
    130130        self.assertEqual(tc.GRANULITE_PROVIDER_ID, self.g._atom.ME.providerID) 
    131131 
    132     def otestApplyGranuliteDetails(self): 
     132    def testApplyGranuliteDetails(self): 
    133133        details = self._initGranule() 
    134134        self.g.ingestGranuliteFiles = False # don't worry about reading in CSML/CDML data 
     
    144144         
    145145 
    146     def otestExtractSpatialData(self): 
     146    def testExtractSpatialData(self): 
    147147        self._initGranule() 
    148148        self.g._extractSpatialData("POLYGON((-8.26171875 -11.25,-9.140625 -17.40234375,-3.33984375 -17.578125,-3.1640625 -12.65625,-8.26171875 -11.25))") 
     
    153153 
    154154 
    155     def otestUpdateDataEntity(self): 
     155    def testUpdateDataEntity(self): 
    156156        # firstly create a DE to use 
    157157        try: 
     
    186186 
    187187 
    188     def otestAddGranuleToDataEntityRecords(self): 
     188    def testAddGranuleToDataEntityRecords(self): 
    189189        # firstly create a DE to use 
    190190        atom = Atom(VTD.DE_TERM) 
Note: See TracChangeset for help on using the changeset viewer.