MCPcopy
hub / github.com/pandas-dev/pandas / test_no_mlk_before_1986

Function test_no_mlk_before_1986

pandas/tests/tseries/holiday/test_federal.py:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def 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
25def test_memorial_day():

Callers

nothing calls this directly

Calls 4

MLKCalendarClass · 0.85
holidaysMethod · 0.80
tolistMethod · 0.45
to_pydatetimeMethod · 0.45

Tested by

no test coverage detected