Ignore:
Timestamp:
23/02/09 09:31:17 (10 years ago)
Author:
cbyrom
Message:

Various tidy ups and fixes to the test codebase - including the removal
of uneccesary files + simplify the test constants.

File:
1 edited

Legend:

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

    r5000 r5012  
    7676            atom = self.g.processGranulite(replaceAtom = False) 
    7777            atom = self.g.processGranulite(replaceAtom = False, initialiseAtom = True) 
    78             self.fail("An exception should not have been thrown") 
     78            self.fail("An exception should have been thrown") 
    7979 
    8080        except ac.DuplicateError, de: 
     
    134134        self.assertEqual(tc.GRANULITE_LOGO, self.g._atom.getLogos()[0].href) 
    135135        self.assertEquals(tc.GRANULITE_AUTHOR_NAME, self.g._atom.ME.responsibleParties[0].name) 
    136         self.assertEqual(-9.140625, atom.minX) 
    137         self.assertEqual(-11.25, atom.maxY) 
    138         self.assertEqual(-3.1640625, atom.maxX) 
    139         self.assertEqual(-17.578125, atom.minY) 
     136        self.assertEqual(-9.140625, self.g._atom.minX) 
     137        self.assertEqual(-11.25, self.g._atom.maxY) 
     138        self.assertEqual(-3.1640625, self.g._atom.maxX) 
     139        self.assertEqual(-17.578125, self.g._atom.minY) 
    140140        self.assertEqual(self.g._atom.t1, tc.GRANULITE_T1) 
    141141        self.assertEqual(self.g._atom.t2, tc.GRANULITE_T2) 
     
    145145        self._initGranule() 
    146146        self.g._extractSpatialData("POLYGON((-8.26171875 -11.25,-9.140625 -17.40234375,-3.33984375 -17.578125,-3.1640625 -12.65625,-8.26171875 -11.25))") 
    147         self.assertEqual(-9.140625, atom.minX) 
    148         self.assertEqual(-11.25, atom.maxY) 
    149         self.assertEqual(-3.1640625, atom.maxX) 
    150         self.assertEqual(-17.578125, atom.minY) 
     147        self.assertEqual(-9.140625, self.g._atom.minX) 
     148        self.assertEqual(-11.25, self.g._atom.maxY) 
     149        self.assertEqual(-3.1640625, self.g._atom.maxX) 
     150        self.assertEqual(-17.578125, self.g._atom.minY) 
    151151 
    152152 
Note: See TracChangeset for help on using the changeset viewer.