Ignore:
Timestamp:
20/11/08 15:36:44 (12 years ago)
Author:
cbyrom
Message:

Strip out code not relevant to MILK - mainly WCS and WMS stuff - also including the CSML server code + trackback code
Also tidy up structure of 'public' dir - setting up new 'style' dir and
centralising icons in icons dir + remove all unused icons, javascript and stylesheets.
Also strip out testcase code and populate new test directory structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/lib/Date.py

    r2672 r4469  
    4949       'JUL':7,'AUG':8,'SEP':9,'OCT':10,'NOV':11,'DEC':12} 
    5050    return d[s.upper()] 
    51  
    52 import unittest 
    53  
    54 class TestCase(unittest.TestCase): 
    55     def test_julday(self): 
    56         # Date checked from http://aa.usno.navy.mil/data/docs/JulianDate.html 
    57         self.assertEqual(JulDay((1,12,2001)),2452245) 
    58         self.assertEqual(JulDay((28,2,2004)),2453064) 
    59     def test_LeapYear(self): 
    60         self.assertEqual(LeapYear(1900),0) 
    61         self.assertEqual(LeapYear(2000),1) 
    62         self.assertEqual(LeapYear(2001),0) 
    63         self.assertEqual(LeapYear(2004),1) 
    64     def test_ValidDate(self): 
    65         self.assertEqual(ValidDate((1,1,2004)),1) 
    66         self.assertEqual(ValidDate((29,2,2003)),0) 
    67         self.assertEqual(ValidDate((29,2,2004)),1) 
    68         self.assertEqual(ValidDate((31,4,2003)),0) 
    69      
    70  
    71      
    72 if __name__=="__main__": 
    73     unittest.main()     
Note: See TracChangeset for help on using the changeset viewer.