def test_aimport_module_completer(): ip = get_ipython() _, matches = ip.complete('i', '%aimport i') nt.assert_in('io', matches) nt.assert_not_in('int', matches)