def test_parse_date_wrong(self): date_b = "2014-08-18T05:39:38.501662+00:00" result = parse_date(date_b) self.assertNotEquals(result, datetime.datetime(2014, 8, 17, 5, 39, 38))
def test_parse_date_ok(self): date_a = "2014-08-17T05:39:38.501662+00:00" result = parse_date(date_a) self.assertEquals(result, datetime.datetime(2014, 8, 17, 5, 39, 38))