From 0268109d1d051a84c291f8693bf706f91b7a030a Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 16 Aug 2013 21:33:43 +0430 Subject: [PATCH] fast parser test improvements --- test/test_fast_parser.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/test_fast_parser.py b/test/test_fast_parser.py index 9de0100d..e465814d 100644 --- a/test/test_fast_parser.py +++ b/test/test_fast_parser.py @@ -13,10 +13,14 @@ class Abc(): class Two(Abc): def h(self): - self. -""" # ^ here is the first completion + self +""" # ^ here is the first completion - b = " def h(self):\n" \ + b = " def g(self):\n" \ " self." + assert jedi.Script(a, 8, 12, 'example.py').completions() + assert jedi.Script(a + b, path='example.py').completions() + + a = a[:-1] + '.\n' assert jedi.Script(a, 8, 13, 'example.py').completions() assert jedi.Script(a + b, path='example.py').completions()