def test_fmt_year_range_not_int(self): assert filters.fmt_year_range('1985') is None assert filters.fmt_year_range(None) is None
def test_fmt_year_range_int(self): assert filters.fmt_year_range(1985) == '1984–1985'