File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def Options(symbol, data_source=None):
8888 warnings .warn ("Options(symbol) is deprecated, use Options(symbol,"
8989 " data_source) instead" , FutureWarning )
9090 data_source = "yahoo"
91- elif data_source == "yahoo" :
91+ if data_source == "yahoo" :
9292 return YahooOptions (symbol )
9393 else :
9494 raise NotImplementedError ("currently only yahoo supported" )
Original file line number Diff line number Diff line change @@ -329,6 +329,10 @@ def test_get_near_stock_price(self):
329329 raise nose .SkipTest (e )
330330 self .assertTrue (len (options ) > 1 )
331331
332+ def test_options_is_not_none (self ):
333+ option = web .Options ('aapl' )
334+ self .assertTrue (option is not None )
335+
332336 def test_get_call_data (self ):
333337 try :
334338 calls = self .aapl .get_call_data (expiry = self .expiry )
You can’t perform that action at this time.
0 commit comments