class TestYear(TestCase): def setUp(self): self.year = Year(events=[], date=datetime.datetime(2008, 4, 1)) def test_get_months(self): months = self.year.get_months() self.assertEqual([month.start for month in months], [datetime.datetime(2008, i, 1) for i in range(1, 13)])
def setUp(self): self.year = Year(events=[], date=datetime.datetime(2008, 4, 1))