예제 #1
0
 def test_iso_date_with_timezone(self):
     self.assertEquals(
         datetime.date(2010, 1, 2),
         parse.iati_date("2010-01-02+06:00"))
     self.assertEquals(
         datetime.date(2010, 1, 2),
         parse.iati_date("2010-01-02-06:00"))
예제 #2
0
 def test_iso_date_with_timezone(self):
     self.assertEquals(
         datetime.date(2010, 1, 2),
         parse.iati_date("2010-01-02+06:00"))
     self.assertEquals(
         datetime.date(2010, 1, 2),
         parse.iati_date("2010-01-02-06:00"))
예제 #3
0
 def test_iso_date_with_z(self):
     self.assertEquals(datetime.date(2010, 1, 2),
                       parse.iati_date("2010-01-02Z"))
예제 #4
0
 def test_variation_1(self):
     self.assertEquals(datetime.date(2011, 12, 31),
                       parse.iati_date("31/12/2011"))
예제 #5
0
 def test_correct_date(self):
     self.assertEquals(datetime.date(2010, 1, 2),
                       parse.iati_date("2010-01-02"))
예제 #6
0
 def test_iso_date_with_z(self):
     self.assertEquals(
         datetime.date(2010, 1, 2),
         parse.iati_date("2010-01-02Z"))
예제 #7
0
 def test_variation_1(self):
     self.assertEquals(
         datetime.date(2011, 12, 31),
         parse.iati_date("31/12/2011"))
예제 #8
0
 def test_correct_date(self):
     self.assertEquals(
         datetime.date(2010, 1, 2),
         parse.iati_date("2010-01-02"))