Esempio n. 1
0
 def test_another_weird_date(self):
     date = 'Wed, 30 Nov -0001 00:00:00 +0000'
     self.assertEquals(parse_pubdate(date),
                       datetime.datetime(1970, 11, 30, 0, 0, 0))
Esempio n. 2
0
 def test_another_weird_date(self):
     date = 'Wed, 30 Nov -0001 00:00:00 +0000'
     self.assertEquals(parse_pubdate(date),datetime.datetime(1970,11,30,0,0,0))
Esempio n. 3
0
 def test_parse_date_with_weird_timezone_thin(self):
     date = 'Sun, 27 May 2012 17:15:14 +0000'
     self.assertEquals(parse_pubdate(date),
                       datetime.datetime(2012, 5, 27, 17, 15, 14))
Esempio n. 4
0
 def test_parse_date_with_weird_timezone_thin(self):
     date = 'Sun, 27 May 2012 17:15:14 +0000'
     self.assertEquals(parse_pubdate(date),datetime.datetime(2012,5,27,17,15,14))