<s> from metakernel . tests . utils import ( get_kernel , get_log_text , <EOL> clear_log_text , EvalKernel ) <EOL> def test_show_magic ( ) : <EOL> kernel = get_kernel ( EvalKernel ) <EOL> results = kernel . do_execute ( """<STR_LIT>""" ) <EOL> text = results [ "<STR_LIT>" ] [ <NUM_LIT:0> ] [ "<STR_LIT:data>" ] [ "<STR_LIT>" ] <EOL> assert "<STR_LIT>" in text , text <EOL> results = kernel . do_execute ( """<STR_LIT>""" ) <EOL> text = results [ "<STR_LIT>" ] [ <NUM_LIT:0> ] [ "<STR_LIT:data>" ] [ "<STR_LIT>" ] <EOL> assert "<STR_LIT>" not in text , text <EOL> assert "<STR_LIT>" in text , text </s>
