#NEWLINE# def test_sub_module( ) : #NEWLINE# #INDENT# "\n    ``full_name needs to check sys.path to actually find it's real path module\n    path.\n    " #NEWLINE# defs = jedi . Script ( 'from jedi.api import classes; classes' ) . goto_definitions ( ) #NEWLINE# assert ( [ defs . full_name for d in defs ] == [ 'jedi.api.classes' ] ) #NEWLINE# defs = jedi . Script ( 'import jedi.api; jedi.api' ) . goto_definitions ( ) #NEWLINE# assert ( [ d . full_name for d in defs ] == [ 'jedi.api' ] )