Ignore:
Timestamp:
15/12/08 14:23:40 (12 years ago)
Author:
cbyrom
Message:

Improve test suite, allowing referenced artefacts to be properly set
up and removed before and after tests + set global logging + adjust
file references + add required data files + simplify and fix some tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgutilstests/lib/testutilities.py

    r4630 r4641  
    118118        self.assertEqual((w,e),(10.,20.)) 
    119119  
    120  
    121     def testNormaliseLongitude(self): 
    122         w,e=1,359 
    123         w,e=normaliseLongitude(w,e) 
    124         self.assertEqual((w,e),(-179.,179.)) 
    125         w,e=190,200 
    126         w,e=normaliseLongitude(w,e) 
    127         self.assertEqual((w,e),(-170.,-160.)) 
    128         w,e=10,20 
    129         w,e=normaliseLongitude(w,e) 
    130         self.assertEqual((w,e),(10.,20.)) 
    131          
    132120if __name__=="__main__": 
    133121    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.