def test_str_for_named_is_name(self): # look at all the amazing combinations! month_prefixes = ["A", "AS", "BA", "BAS", "Q", "BQ", "BQS", "QS"] names = [ prefix + "-" + month for prefix in month_prefixes for month in [ "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC", ] ] days = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"] names += ["W-" + day for day in days] names += [ "WOM-" + week + day for week in ("1", "2", "3", "4") for day in days ] _offset_map.clear() for name in names: offset = _get_offset(name) assert offset.freqstr == name
def setup_method(self, method): _offset_map.clear()
def setup_method(self, method): self.d = Timestamp(datetime(2008, 1, 2)) _offset_map.clear()