Files
jedi-vim-fork/test/pyimport.vim
2013-08-24 20:36:47 +04:30

28 lines
542 B
VimL

source plugin/jedi.vim
source test/utils.vim
describe 'pyimport'
before
bd!
end
after
bd!
bd!
end
it 'open_tab'
Pyimport os
Expect g:current_buffer_is_module('os') == 1
Pyimport subprocess
Expect g:current_buffer_is_module('subprocess') == 1
Expect tabpagenr('$') == 2
end
it 'completion'
" don't know how to test this.
"execute "Pyimport subproc\<Tab>"
"Expect g:current_buffer_is_module('subprocess') == 1
end
end