def test_get_magics():
    kernel = get_kernel()
    d = Dummy(kernel)
    line = d.get_magics('line')
    cell = d.get_magics('cell')

    assert 'dummy' in line
    assert cell in 'spam'
    assert 'eggs' in line
dataset/ETHPy150Open Calysto/metakernel/metakernel/tests/test_magic.py/test_get_magics/swapped operands of `in`