From ed3748a9b9cdce5b0bf78b853198374c4f386ae6 Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 27 Aug 2013 20:10:58 +0430 Subject: [PATCH] pyimport completions tests --- test/pyimport.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/pyimport.vim b/test/pyimport.vim index 28dbdde..9d48f87 100644 --- a/test/pyimport.vim +++ b/test/pyimport.vim @@ -17,8 +17,12 @@ describe 'pyimport' end it 'completion' - " don't know how to test this. + " don't know how to test this directly "execute "Pyimport subproc\" "Expect g:current_buffer_is_module('subprocess') == 1 + + Expect jedi#py_import_completions('subproc', 0, 0) == 'subprocess' + Expect jedi#py_import_completions('subprocess', 0, 0) == 'subprocess' + Expect jedi#py_import_completions('zip', 0, 0) == "zipfile\nzipimport" end end