def test_notAfter_whenLater(self) : p = Period.trimester(2012, 2) self.assertEqual( p.notAfter('2014-05-06').t, ('2012-04-10', '2012-07-09'))
def test_notAfter_whenEarly(self) : p = Period.trimester(2015, 1) self.assertEqual( p.notAfter('2014-05-06').t, ('2015-01-10', '2014-05-06'))
def test_notAfter_whenInside(self) : p = Period.trimester(2014, 2) self.assertEqual( p.notAfter('2014-05-06').t, ('2014-04-10', '2014-05-06'))
def test_notUntil_whenInside(self) : p = Period.trimester(2014, 2) self.assertEqual( p.notUntil('2014-05-06').t, ('2014-05-06', '2014-07-09'))
def test_trimesterPeriod_t4(self) : self.assertEqual( Period.trimester(2015, 4).t, ('2015-10-10', '2016-01-09'))
def test_trimesterPeriod_t3(self) : self.assertEqual( Period.trimester(2015, 3).t, ('2015-07-10', '2015-10-09'))
def test_trimesterPeriod_t2(self) : self.assertEqual( Period.trimester(2015, 2).t, ('2015-04-10', '2015-07-09'))
def test_trimesterPeriod_t1(self) : self.assertEqual( Period.trimester(2015, 1).t, ('2015-01-10', '2015-04-09'))