def test__create(self):
     fy = FiscalYear(2016)
     self.assertEqual('FY16', str(fy))
     self.assertEqual(datetime.date(2015, 10, 1), fy.start_date)
     self.assertEqual(datetime.date(2016, 9, 30), fy.end_date)
Esempio n. 2
0
 def test__str(self):
     fy = FiscalYear(2014, display='AF%s')
     self.assertEqual('AF14', str(fy))