Exemplo n.º 1
0
Arquivo: tests.py Projeto: mitnk/mc
 def test_get_1st_of_last_month(self):
     d = get_1st_of_last_month(date_from=datetime.date(2011, 9, 14))
     self.assertEqual(d, datetime.date(2011, 8, 1))
     d = get_1st_of_last_month(date_from=datetime.date(2011, 1, 14))
     self.assertEqual(d, datetime.date(2010, 12, 1))