aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/tests/test_dates.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/tests/test_dates.py b/python/tests/test_dates.py
index 31d55322..8f781e3b 100644
--- a/python/tests/test_dates.py
+++ b/python/tests/test_dates.py
@@ -198,6 +198,12 @@ class TestHolidays(unittest.TestCase):
def test_juneteenth(self):
self.assertEqual(self.fl.inspect()["pay_dates"][0], datetime.date(2022, 6, 21))
+ def test_previous_twentwieth(self):
+ self.assertEqual(
+ previous_twentieth(datetime.date(2022, 7, 22), cal="/usr/share/cds/US"),
+ datetime.date(2022, 6, 21),
+ )
+
if __name__ == "__main__":
unittest.main()