Ejemplo n.º 1
0
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)])
Ejemplo n.º 2
0
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)])
Ejemplo n.º 3
0
 def setUp(self):
     self.year = Year(events=[], date=datetime.datetime(2008, 4, 1))
Ejemplo n.º 4
0
 def setUp(self):
     self.year = Year(events=[], date=datetime.datetime(2008, 4, 1))