Ejemplo n.º 1
0
    def test_matches(self, month, day, date, expected):
        month_day = MonthDay(month=month, day=day)
        actual = month_day.matches(date)

        self.assertEqual(actual, expected)
Ejemplo n.º 2
0
    def test_of(self, date, expected_month, expected_day):
        month_day = MonthDay.of(date)

        self.assertEqual(month_day.month, expected_month)
        self.assertEqual(month_day.day, expected_day)