Example #1
0
 def test_fetch_historical_cboe_data_non_existing(self):
     raw_text = stocks._fetch_historical_cboe_data(NON_EXISTING_SYMBOL)
     self.assertIsNone(raw_text)
Example #2
0
 def test_fetch_historical_cboe_data_existing(self):
     raw_text = stocks._fetch_historical_cboe_data("VXST")
     self.assertTrue(raw_text.startswith("CBOE data is compiled for"))
     self.assertGreater(len(raw_text), 1000)