From c7b3ad9e2c636b785ebb49e08a7864abc8b951a4 Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 27 Aug 2013 20:34:26 +0430 Subject: [PATCH] documentation tests --- test/documentation.vim | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/documentation.vim diff --git a/test/documentation.vim b/test/documentation.vim new file mode 100644 index 0000000..9dfbce6 --- /dev/null +++ b/test/documentation.vim @@ -0,0 +1,20 @@ +source plugin/jedi.vim + +describe 'documentation_docstrings' + before + set filetype=python + end + + it 'simple' + put = 'ImportError' + normal GK + Expect bufname('%') == "'__doc__'" + Expect &filetype == 'rst' + let content = join(getline(1,'$'), "\n") + Expect stridx(content, "Import can't find module") > 0 + normal K + Expect bufname('%') == '' + end +end + +" vim: et:ts=4:sw=4