def test_import_empty():
 completion = jedi.Script('import ').completions()[0]
 definition = completion.follow_definition()[0]
 assert definition

def test_import_empty ( ) : completion = jedi . Script ( 'import ' ) . completions ( ) [ 0 ] definition = completion . follow_definition ( ) [ 0 ] assert definition
github #340 .