From 2991ec7d55c6e5585cda910b0a6644bf245dc99b Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 23 Aug 2013 00:17:05 +0430 Subject: [PATCH] more completions tests --- test/completions.vim | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/test/completions.vim b/test/completions.vim index 355a174..237b60a 100644 --- a/test/completions.vim +++ b/test/completions.vim @@ -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