more completions tests

This commit is contained in:
David Halter
2013-08-23 00:17:05 +04:30
parent 10bad3310d
commit 2991ec7d55

View File

@@ -7,13 +7,29 @@ describe 'completions'
set filetype=python
end
after
close!
end
it 'import'
" X is the completion command
normal oimporX
Expect getline('.') == 'import'
normal! a subproX
normal a subproX
Expect getline('.') == 'import subprocess'
end
it 'exception'
normal oIndentationErrX
Expect getline('.') == 'IndentationError'
normal a().filenaX
Expect getline('.') == 'IndentationError().filename'
end
it 'typing'
normal oraisX ImpXErrX()
Expect getline('.') == 'raise ImportError()'
end
end
" vim: et:ts=4:sw=4