def test_unzip_str(self): self.assertEqual(htmls.unzipped, unzip_str(htmls.zipped))
def test_derivative_price_list_url(self): resp = derivative_price_list_url('2015','NOV','19NOV2015') csv = unzip_str(resp.content)
def test_pr_price_list_zipped_url(self): resp = pr_price_list_zipped_url('191115') csv = unzip_str(resp.content)
def test_price_list_url(self): date_str = "11-19-2015" resp = price_list_url('2015', 'NOV', '19NOV2015') csv = unzip_str(resp.content) self.assertGreaterEqual(csv.find('SBIN'),0)
def test_derivative_price_list_url(self): resp = derivative_price_list_url('2019', 'JUL', '19JUL2019') csv = unzip_str(resp.content)
def test_price_list_url(self): resp = price_list_url('2019', 'DEC', '31DEC2019') csv = unzip_str(resp.content) self.assertGreaterEqual(csv.find('SBIN'), 0)