def test_named_import():
 s = 'import time as dt'
 assert (len(Script(s, 1, 15, '/').goto_definitions()) == 1)
 assert (len(Script(s, 1, 10, '/').goto_definitions()) == 1)

def test_named_import ( ) : s = 'import time as dt' assert ( len ( Script ( s , 1 , 15 , '/' ) . goto_definitions ( ) ) == 1 ) assert ( len ( Script ( s , 1 , 10 , '/' ) . goto_definitions ( ) ) == 1 )
named import - jedi-vim issue #8 .