def test_get_help():
    kernel = get_kernel()
    d = Dummy(kernel)

    dummy_help = d.get_help('line', 'dummy', 0)
    assert dummy_help.startswith("%dummy")
    assert d.line_dummy.__doc__ in "    This is additional information on dummy", "Checking indents"
    assert "\nThis is additional information on dummy" in dummy_help, "Checking indent removal"

    dummy_help = d.get_help('line', 'dummy', 1)
    # will show this entire file, including this sentence
    assert "# will show this entire file, including this sentence" in \
            dummy_help

    spam_help = d.get_help('cell', 'spam', 0)
    assert spam_help.startswith("%%spam"), spam_help

    spam_help = d.get_help('cell', 'spam', 1)
    assert "# will show this entire file, including this sentence" in \
            spam_help
dataset/ETHPy150Open Calysto/metakernel/metakernel/tests/test_magic.py/test_get_help/swapped operands of `in`