()
| 76 | |
| 77 | |
| 78 | def test_magic_not_found(): |
| 79 | # magic not found raises UsageError |
| 80 | with nt.assert_raises(UsageError): |
| 81 | _ip.magic('doesntexist') |
| 82 | |
| 83 | # ensure result isn't success when a magic isn't found |
| 84 | result = _ip.run_cell('%doesntexist') |
| 85 | assert isinstance(result.error_in_exec, UsageError) |
| 86 | |
| 87 | |
| 88 | def test_cell_magic_not_found(): |