def test_magic_not_found():
    with nt.assert_raises(UsageError):
        _ip.magic('doesntexist')
    result = _ip.run_cell('%doesntexist')
    assert isinstance(result.error_in_exec, UsageError)
def test_magic_not_found():
    with nt.assert_raises(UsageError):
        _ip.magic('doesntexist')
    result = _ip.run_cell('%doesntexist')
    assert isinstance(result.error_in_exec, UsageError)