@pytest.mark.skipif('HAS_BEAUTIFUL_SOUP')
def test_htmlinputter_no_bs4():
 inputter = html.HTMLInputter()
 with pytest.raises(core.OptionalTableImportError):
  inputter.process_lines([])

@ pytest . mark . skipif ( 'HAS_BEAUTIFUL_SOUP' ) def test_htmlinputter_no_bs4 ( ) : inputter = html . HTMLInputter ( ) with pytest . raises ( core . OptionalTableImportError ) : inputter . process_lines ( [ ] )
this should return an optionaltableimporterror if beautifulsoup is not installed .