def test_month_name(self): import calendar m = datetime.now().month expected = calendar.month_name[m] result = month_name() self.assertEqual(expected, result)