def test_import_module_completer(): ip = get_ipython() _, matches = ip.complete('i', 'import i') nt.assert_in('io', matches) nt.assert_not_in('int', matches)