source: mauRepo/MolesManager/trunk/src/libs/migration/tests/commontest.py @ 8186

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/libs/migration/tests/commontest.py@8186
Revision 8186, 542 bytes checked in by mnagni, 8 years ago (diff)

Incomplete - # 22392: citation migration from MOLES2
 http://team.ceda.ac.uk/trac/ceda/ticket/22392
Complete - # 22397: CEDA Observation geographicExtent
 http://team.ceda.ac.uk/trac/ceda/ticket/22397
Complete - # 22409: CEDA Observation - resultTime
 http://team.ceda.ac.uk/trac/ceda/ticket/22409

Line 
1'''
2Created on 7 Mar 2012
3
4@author: mnagni
5'''
6from unittest import TestCase
7from libs.migration.processor.commons import isoDateTimeStringToTimeDate
8
9
10class CommonTest(TestCase):
11    '''
12    classdocs
13    '''
14
15    def testIsoDateTimeStringToTimeDate_1(self):
16        time1 = '2009-12-10T03:16:25Z'
17        isoDateTimeStringToTimeDate(time1)
18
19    def testIsoDateTimeStringToTimeDate_2(self):
20        time1 = '2009 12 10T03:16:25Z'
21        self.assertRaises(ValueError, isoDateTimeStringToTimeDate, time1)
22
23       
24
25       
26       
27       
Note: See TracBrowser for help on using the repository browser.