<s> """<STR_LIT>""" <EOL> import re <EOL> from util import with_app , SkipTest <EOL> @ with_app ( '<STR_LIT:html>' , testroot = '<STR_LIT>' , <EOL> confoverrides = { '<STR_LIT>' : [ '<STR_LIT>' ] } ) <EOL> def test_imgmath_png ( app , status , warning ) : <EOL> app . builder . build_all ( ) <EOL> if "<STR_LIT>" in warning . getvalue ( ) : <EOL> raise SkipTest ( '<STR_LIT>' ) <EOL> if "<STR_LIT>" in warning . getvalue ( ) : <EOL> raise SkipTest ( '<STR_LIT>' ) <EOL> content = ( app . outdir / '<STR_LIT>' ) . text ( ) <EOL> html = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> assert re . search ( html , content , re . S ) <EOL> @ with_app ( '<STR_LIT:html>' , testroot = '<STR_LIT>' , <EOL> confoverrides = { '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' : '<STR_LIT>' } ) <EOL> def test_imgmath_svg ( app , status , warning ) : <EOL> app . builder . build_all ( ) <EOL> if "<STR_LIT>" in warning . getvalue ( ) : <EOL> raise SkipTest ( '<STR_LIT>' ) <EOL> if "<STR_LIT>" in warning . getvalue ( ) : <EOL> raise SkipTest ( '<STR_LIT>' ) <EOL> content = ( app . outdir / '<STR_LIT>' ) . text ( ) <EOL> html = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> assert re . search ( html , content , re . S ) <EOL> @ with_app ( '<STR_LIT:html>' , testroot = '<STR_LIT>' , <EOL> confoverrides = { '<STR_LIT>' : [ '<STR_LIT>' ] } ) <EOL> def test_mathjax_align ( app , status , warning ) : <EOL> app . builder . build_all ( ) <EOL> content = ( app . outdir / '<STR_LIT>' ) . text ( ) <EOL> html = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> assert re . search ( html , content , re . S ) <EOL> @ with_app ( '<STR_LIT:html>' , testroot = '<STR_LIT>' , <EOL> confoverrides = { '<STR_LIT>' : True , <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] } ) <EOL> def test_math_number_all_mathjax ( app , status , warning ) : <EOL> app . builder . build_all ( ) <EOL> content = ( app . outdir / '<STR_LIT>' ) . text ( ) <EOL> html = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> assert re . search ( html , content , re . S ) <EOL> @ with_app ( '<STR_LIT>' , testroot = '<STR_LIT>' , <EOL> confoverrides = { '<STR_LIT>' : [ '<STR_LIT>' ] } ) <EOL> def test_math_number_all_latex ( app , status , warning ) : <EOL> app . builder . build_all ( ) <EOL> content = ( app . outdir / '<STR_LIT>' ) . text ( ) <EOL> macro = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> assert re . search ( macro , content , re . S ) <EOL> macro = r'<STR_LIT>' <EOL> assert re . search ( macro , content , re . S ) <EOL> macro = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> assert re . search ( macro , content , re . S ) <EOL> macro = ( r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' <EOL> r'<STR_LIT>' ) <EOL> assert re . search ( macro , content , re . S ) </s>
