def test_genelatex_no_wrap():
 def mock_kpsewhich(filename):
  assert False, 'kpsewhich should not be called (called with {0})'.format(filename)
 with patch.object(latextools, 'kpsewhich', mock_kpsewhich):
  nt.assert_equal('\n'.join(latextools.genelatex('body text', False)), '\\documentclass{article}\n\\usepackage{amsmath}\n\\usepackage{amsthm}\n\\usepackage{amssymb}\n\\usepackage{bm}\n\\pagestyle{empty}\n\\begin{document}\nbody text\n\\end{document}')

def test_genelatex_no_wrap ( ) : def mock_kpsewhich ( filename ) : assert False , 'kpsewhich should not be called (called with {0})' . format ( filename ) with patch . object ( latextools , 'kpsewhich' , mock_kpsewhich ) : nt . assert_equal ( '\n' . join ( latextools . genelatex ( 'body text' , False ) ) , '\\documentclass{article}\n\\usepackage{amsmath}\n\\usepackage{amsthm}\n\\usepackage{amssymb}\n\\usepackage{bm}\n\\pagestyle{empty}\n\\begin{document}\nbody text\n\\end{document}' )
test genelatex with wrap=false .