Example #1
0
 def test_fetch_data_non_existing_symbol(self):
     raw_text = options._fetch_data(NON_EXISTING_SYMBOL)
     self.assertGreaterEqual(raw_text.find("<html"), 0)
Example #2
0
 def test_fetch_data(self):
     raw_text = options._fetch_data("VIX")
     self.assertTrue(raw_text.startswith("VIX (CBOE MARKET VOLATILITY)"))
     self.assertGreater(len(raw_text), 50000)