def test__get_tar_valid(self): d = DailyFilings(date=date(2020, 1, 2)) urls = d._get_tar_urls() assert urls[0].endswith('20200102.nc.tar.gz') assert urls[0].startswith('http')
def test__get_tar_bad_year_quarter(self, year, quarter): with pytest.raises(ValueError): d = DailyFilings(date=date(year, utils.get_month(quarter), 1)) d._get_tar_urls()