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"))
def test_iso_date_with_z(self): self.assertEquals(datetime.date(2010, 1, 2), parse.iati_date("2010-01-02Z"))
def test_variation_1(self): self.assertEquals(datetime.date(2011, 12, 31), parse.iati_date("31/12/2011"))
def test_correct_date(self): self.assertEquals(datetime.date(2010, 1, 2), parse.iati_date("2010-01-02"))
def test_iso_date_with_z(self): self.assertEquals( datetime.date(2010, 1, 2), parse.iati_date("2010-01-02Z"))
def test_variation_1(self): self.assertEquals( datetime.date(2011, 12, 31), parse.iati_date("31/12/2011"))
def test_correct_date(self): self.assertEquals( datetime.date(2010, 1, 2), parse.iati_date("2010-01-02"))