()
| 12 | |
| 13 | |
| 14 | def test_no_mlk_before_1986(): |
| 15 | # see gh-10278 |
| 16 | class MLKCalendar(AbstractHolidayCalendar): |
| 17 | rules = [USMartinLutherKingJr] |
| 18 | |
| 19 | holidays = MLKCalendar().holidays(start="1984", end="1988").to_pydatetime().tolist() |
| 20 | |
| 21 | # Testing to make sure holiday is not incorrectly observed before 1986. |
| 22 | assert holidays == [datetime(1986, 1, 20, 0, 0), datetime(1987, 1, 19, 0, 0)] |
| 23 | |
| 24 | |
| 25 | def test_memorial_day(): |
nothing calls this directly
no test coverage detected