def test_keyword():
 defs = Script('print').goto_definitions()
 if is_py3:
  assert [d.doc for d in defs]
 else:
  assert (defs == [])
 assert (Script('import').goto_assignments() == [])
 completions = Script('import', 1, 1).completions()
 assert ((len(completions) > 10) and ('if' in [c.name for c in completions]))
 assert (Script('assert').goto_definitions() == [])

def test_keyword ( ) : defs = Script ( 'print' ) . goto_definitions ( ) if is_py3 : assert [ d . doc for d in defs ] else : assert ( defs == [ ] ) assert ( Script ( 'import' ) . goto_assignments ( ) == [ ] ) completions = Script ( 'import' , 1 , 1 ) . completions ( ) assert ( ( len ( completions ) > 10 ) and ( 'if' in [ c . name for c in completions ] ) ) assert ( Script ( 'assert' ) . goto_definitions ( ) == [ ] )
github jedi-vim issue #44 .