def test_add_to_end():
 a = dedent('\n    class Abc():\n        def abc(self):\n            self.x = 3\n\n    class Two(Abc):\n        def h(self):\n            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()

def test_add_to_end ( ) : a = dedent ( '\n    class Abc():\n        def abc(self):\n            self.x = 3\n\n    class Two(Abc):\n        def h(self):\n            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 ( )
fast_parser doesnt parse everything again .