def test_probably_html():
 for table in ('t/html.html', 'http://blah.com/table.html', 'https://blah.com/table.html', 'file://blah/table.htm', 'ftp://blah.com/table.html', 'file://blah.com/table.htm', ' <! doctype html > hello world', 'junk < table baz> <tr foo > <td bar> </td> </tr> </table> junk', ['junk < table baz>', ' <tr foo >', ' <td bar> ', '</td> </tr>', '</table> junk'], (' <! doctype html > ', ' hello world')):
  assert (_probably_html(table) is True)
 for table in ('t/html.htms', 'Xhttp://blah.com/table.html', ' https://blah.com/table.htm', 'fole://blah/table.htm', ' < doctype html > hello world', 'junk < tble baz> <tr foo > <td bar> </td> </tr> </table> junk', ['junk < table baz>', ' <t foo >', ' <td bar> ', '</td> </tr>', '</table> junk'], (' <! doctype htm > ', ' hello world'), [[1, 2, 3]]):
  assert (_probably_html(table) is False)

def test_probably_html ( ) : for table in ( 't/html.html' , 'http://blah.com/table.html' , 'https://blah.com/table.html' , 'file://blah/table.htm' , 'ftp://blah.com/table.html' , 'file://blah.com/table.htm' , ' <! doctype html > hello world' , 'junk < table baz> <tr foo > <td bar> </td> </tr> </table> junk' , [ 'junk < table baz>' , ' <tr foo >' , ' <td bar> ' , '</td> </tr>' , '</table> junk' ] , ( ' <! doctype html > ' , ' hello world' ) ) : assert ( _probably_html ( table ) is True ) for table in ( 't/html.htms' , 'Xhttp://blah.com/table.html' , ' https://blah.com/table.htm' , 'fole://blah/table.htm' , ' < doctype html > hello world' , 'junk < tble baz> <tr foo > <td bar> </td> </tr> </table> junk' , [ 'junk < table baz>' , ' <t foo >' , ' <td bar> ' , '</td> </tr>' , '</table> junk' ] , ( ' <! doctype htm > ' , ' hello world' ) , [ [ 1 , 2 , 3 ] ] ) : assert ( _probably_html ( table ) is False )
test the routine for guessing if a table input to ascii .