@@ -325,29 +325,29 @@ def test_get_all_data_calls_only(self):
325325 def test_sample_page_price_quote_time1 (self ):
326326 #Tests the weekend quote time format
327327 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 ) ))
330330
331331 def test_chop (self ):
332332 #regression test for #7625
333333 self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = np .nan )
334334 chopped = self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = 100 )
335- self .assertIsInstance ( chopped , DataFrame )
335+ self .assert_ ( isinstance ( chopped , DataFrame ) )
336336 self .assertTrue (len (chopped ) > 1 )
337337
338338 def test_chop_out_of_strike_range (self ):
339339 #regression test for #7625
340340 self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = np .nan )
341341 chopped = self .aapl .chop_data (self .data1 , above_below = 2 , underlying_price = 100000 )
342- self .assertIsInstance ( chopped , DataFrame )
342+ self .assert_ ( isinstance ( chopped , DataFrame ) )
343343 self .assertTrue (len (chopped ) > 1 )
344344
345345 def test_sample_page_price_quote_time2 (self ):
346346 #Tests the EDT page format
347347 #regression test for #8741
348348 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 ) ))
351351
352352 def test_sample_page_chg_float (self ):
353353 #Tests that numeric columns with comma's are appropriately dealt with
0 commit comments