holiday_base 100% coverage
@@ -523,6 +523,10 @@ class TestCountryHoliday(unittest.TestCase):
def test_country(self):
self.assertEqual(self.holidays.country, "US")
+ def test_country_single_year(self):
+ h = holidays.CountryHoliday("US", years=2021)
+ self.assertEqual(h.years, {2021})
+
def test_country_years(self):
h = holidays.CountryHoliday("US", years=[2015, 2016])
self.assertEqual(h.years, {2015, 2016})
