@@ -159,12 +159,12 @@ def test_spam_with_types(self):
159159 def test_spam_no_match (self ):
160160 dfs = self .read_html (self .spam_data )
161161 for df in dfs :
162- tm .assert_isinstance (df , DataFrame )
162+ tm .assertIsInstance (df , DataFrame )
163163
164164 def test_banklist_no_match (self ):
165165 dfs = self .read_html (self .banklist_data , attrs = {'id' : 'table' })
166166 for df in dfs :
167- tm .assert_isinstance (df , DataFrame )
167+ tm .assertIsInstance (df , DataFrame )
168168
169169 def test_spam_header (self ):
170170 df = self .read_html (self .spam_data , '.*Water.*' , header = 1 )[0 ]
@@ -307,9 +307,9 @@ def test_file_url(self):
307307 url = self .banklist_data
308308 dfs = self .read_html (file_path_to_url (url ), 'First' ,
309309 attrs = {'id' : 'table' })
310- tm .assert_isinstance (dfs , list )
310+ tm .assertIsInstance (dfs , list )
311311 for df in dfs :
312- tm .assert_isinstance (df , DataFrame )
312+ tm .assertIsInstance (df , DataFrame )
313313
314314 @slow
315315 def test_invalid_table_attrs (self ):
@@ -325,44 +325,44 @@ def _bank_data(self, *args, **kwargs):
325325 @slow
326326 def test_multiindex_header (self ):
327327 df = self ._bank_data (header = [0 , 1 ])[0 ]
328- tm .assert_isinstance (df .columns , MultiIndex )
328+ tm .assertIsInstance (df .columns , MultiIndex )
329329
330330 @slow
331331 def test_multiindex_index (self ):
332332 df = self ._bank_data (index_col = [0 , 1 ])[0 ]
333- tm .assert_isinstance (df .index , MultiIndex )
333+ tm .assertIsInstance (df .index , MultiIndex )
334334
335335 @slow
336336 def test_multiindex_header_index (self ):
337337 df = self ._bank_data (header = [0 , 1 ], index_col = [0 , 1 ])[0 ]
338- tm .assert_isinstance (df .columns , MultiIndex )
339- tm .assert_isinstance (df .index , MultiIndex )
338+ tm .assertIsInstance (df .columns , MultiIndex )
339+ tm .assertIsInstance (df .index , MultiIndex )
340340
341341 @slow
342342 def test_multiindex_header_skiprows_tuples (self ):
343343 df = self ._bank_data (header = [0 , 1 ], skiprows = 1 , tupleize_cols = True )[0 ]
344- tm .assert_isinstance (df .columns , Index )
344+ tm .assertIsInstance (df .columns , Index )
345345
346346 @slow
347347 def test_multiindex_header_skiprows (self ):
348348 df = self ._bank_data (header = [0 , 1 ], skiprows = 1 )[0 ]
349- tm .assert_isinstance (df .columns , MultiIndex )
349+ tm .assertIsInstance (df .columns , MultiIndex )
350350
351351 @slow
352352 def test_multiindex_header_index_skiprows (self ):
353353 df = self ._bank_data (header = [0 , 1 ], index_col = [0 , 1 ], skiprows = 1 )[0 ]
354- tm .assert_isinstance (df .index , MultiIndex )
355- tm .assert_isinstance (df .columns , MultiIndex )
354+ tm .assertIsInstance (df .index , MultiIndex )
355+ tm .assertIsInstance (df .columns , MultiIndex )
356356
357357 @slow
358358 def test_regex_idempotency (self ):
359359 url = self .banklist_data
360360 dfs = self .read_html (file_path_to_url (url ),
361361 match = re .compile (re .compile ('Florida' )),
362362 attrs = {'id' : 'table' })
363- tm .assert_isinstance (dfs , list )
363+ tm .assertIsInstance (dfs , list )
364364 for df in dfs :
365- tm .assert_isinstance (df , DataFrame )
365+ tm .assertIsInstance (df , DataFrame )
366366
367367 def test_negative_skiprows (self ):
368368 with tm .assertRaisesRegexp (ValueError ,
@@ -426,10 +426,10 @@ def test_empty_tables(self):
426426 res1 = self .read_html (StringIO (data1 ))
427427 res2 = self .read_html (StringIO (data2 ))
428428 assert_framelist_equal (res1 , res2 )
429-
429+
430430 def test_tfoot_read (self ):
431431 """
432- Make sure that read_html reads tfoot, containing td or th.
432+ Make sure that read_html reads tfoot, containing td or th.
433433 Ignores empty tfoot
434434 """
435435 data_template = '''<table>
@@ -452,10 +452,10 @@ def test_tfoot_read(self):
452452
453453 data1 = data_template .format (footer = "" )
454454 data2 = data_template .format (footer = "<tr><td>footA</td><th>footB</th></tr>" )
455-
455+
456456 d1 = {'A' : ['bodyA' ], 'B' : ['bodyB' ]}
457457 d2 = {'A' : ['bodyA' , 'footA' ], 'B' : ['bodyB' , 'footB' ]}
458-
458+
459459 tm .assert_frame_equal (self .read_html (data1 )[0 ], DataFrame (d1 ))
460460 tm .assert_frame_equal (self .read_html (data2 )[0 ], DataFrame (d2 ))
461461
@@ -721,8 +721,8 @@ def test_data_fail(self):
721721 def test_works_on_valid_markup (self ):
722722 filename = os .path .join (DATA_PATH , 'valid_markup.html' )
723723 dfs = self .read_html (filename , index_col = 0 )
724- tm .assert_isinstance (dfs , list )
725- tm .assert_isinstance (dfs [0 ], DataFrame )
724+ tm .assertIsInstance (dfs , list )
725+ tm .assertIsInstance (dfs [0 ], DataFrame )
726726
727727 @slow
728728 def test_fallback_success (self ):
0 commit comments