@@ -325,29 +325,29 @@ def test_get_all_data_calls_only(self):
325
325
def test_sample_page_price_quote_time1 (self ):
326
326
#Tests the weekend quote time format
327
327
price , quote_time = self .aapl ._get_underlying_price (self .html1 )
328
- self .assertIsInstance ( price , (int , float , complex ))
329
- self .assertIsInstance ( quote_time , (datetime , Timestamp ))
328
+ self .assert_ ( isinstance ( price , (int , float , complex ) ))
329
+ self .assert_ ( isinstance ( quote_time , (datetime , Timestamp ) ))
330
330
331
331
def test_chop (self ):
332
332
#regression test for #7625
333
333
self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = np .nan )
334
334
chopped = self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = 100 )
335
- self .assertIsInstance ( chopped , DataFrame )
335
+ self .assert_ ( isinstance ( chopped , DataFrame ) )
336
336
self .assertTrue (len (chopped ) > 1 )
337
337
338
338
def test_chop_out_of_strike_range (self ):
339
339
#regression test for #7625
340
340
self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = np .nan )
341
341
chopped = self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = 100000 )
342
- self .assertIsInstance ( chopped , DataFrame )
342
+ self .assert_ ( isinstance ( chopped , DataFrame ) )
343
343
self .assertTrue (len (chopped ) > 1 )
344
344
345
345
def test_sample_page_price_quote_time2 (self ):
346
346
#Tests the EDT page format
347
347
#regression test for #8741
348
348
price , quote_time = self .aapl ._get_underlying_price (self .html2 )
349
- self .assertIsInstance ( price , (int , float , complex ))
350
- self .assertIsInstance ( quote_time , (datetime , Timestamp ))
349
+ self .assert_ ( isinstance ( price , (int , float , complex ) ))
350
+ self .assert_ ( isinstance ( quote_time , (datetime , Timestamp ) ))
351
351
352
352
def test_sample_page_chg_float (self ):
353
353
#Tests that numeric columns with comma's are appropriately dealt with
0 commit comments