def test_get_last_day_of_month_month_and_year_swapped(self): with self.assertRaises(ValueError): Database.get_last_day_of_month(None, '2019-13-01')
def test_get_last_day_of_month_no_leap_year(self): res = Database.get_last_day_of_month(None, '2019-02-05') self.assertEqual(res, 28)