
from metakernel.tests.utils import get_kernel, EvalKernel, get_log_text

def test_run_magic():
    kernel = get_kernel(EvalKernel)
    kernel.do_execute("%%run %s" % __file__.replace(".pyc", ".py"))
    kernel.do_execute("TEST")
    text = get_log_text(kernel)
    assert '42' in text, "Didn't run this file"

TEST = 42

c29953b63ba60b82c904cae57b61e7e3f0894c37
<mask token>

<mask token>


def test_run_magic():
    kernel = get_kernel(EvalKernel)
    kernel.do_execute('%%run %s' % __file__.replace('.pyc', '.py'))
    kernel.do_execute('TEST')
    text = get_log_text(kernel)
    assert '42' in text, "Didn't run this file"


<mask token>

<mask token>


def test_run_magic():
    kernel = get_kernel(EvalKernel)
    kernel.do_execute('%%run %s' % __file__.replace('.pyc', '.py'))
    kernel.do_execute('TEST')
    text = get_log_text(kernel)
    assert '42' in text, "Didn't run this file"


TEST = 42

from metakernel.tests.utils import get_kernel, EvalKernel, get_log_text


def test_run_magic():
    kernel = get_kernel(EvalKernel)
    kernel.do_execute('%%run %s' % __file__.replace('.pyc', '.py'))
    kernel.do_execute('TEST')
    text = get_log_text(kernel)
    assert '42' in text, "Didn't run this file"


TEST = 42


from metakernel.tests.utils import get_kernel, EvalKernel, get_log_text

def test_run_magic():
    kernel = get_kernel(EvalKernel)
    kernel.do_execute("%%run %s" % __file__.replace(".pyc", ".py"))
    kernel.do_execute("TEST")
    text = get_log_text(kernel)
    assert '42' in text, "Didn't run this file"

TEST = 42
