Module Expr Str Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Str ImportFrom alias ImportFrom alias Assert CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore NameLoad body If CompareIs NameLoad NameLoad body Continue For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Continue If Call AttributeLoad NameLoad attr NameLoad body Assert CompareIs NameLoad NameLoad decorator_list
N/A N/A 
Test the Jedi "System" which means for example to test if imports are
correctly used.
 N/A os N/A inspect N/A jedi test_settings_module N/A N/A N/A N/A N/A 
    jedi.settings and jedi.cache.settings must be the same module.
     jedi cache jedi settings N/A N/A N/A cache settings settings N/A test_no_duplicate_modules N/A N/A N/A N/A N/A 
    Make sure that import hack works as expected.

    Jedi does an import hack (see: jedi/__init__.py) to have submodules
    with circular dependencies.  The modules in this circular dependency
    "loop" must be imported by ``import <module>`` rather than normal
    ``from jedi import <module>`` (or ``from . jedi ...``).  This test
    make sure that this is satisfied.

    See also:

    - `#160 <https://github.com/davidhalter/jedi/issues/160>`_
    - `#161 <https://github.com/davidhalter/jedi/issues/161>`_
     N/A sys N/A jedipath N/A N/A N/A os path dirname N/A N/A N/A os path abspath N/A jedi __file__ is_submodule N/A N/A m N/A N/A N/A N/A N/A filepath N/A m __file__ N/A N/A N/A AttributeError N/A N/A False N/A N/A N/A N/A N/A N/A os path abspath filepath startswith jedipath N/A N/A modules N/A list N/A filter is_submodule N/A N/A N/A sys modules values N/A top_modules N/A m N/A m modules N/A N/A N/A N/A m __name__ startswith jedi. N/A m modules N/A N/A N/A m jedi N/A N/A N/A tm top_modules N/A N/A N/A N/A imported N/A getattr m N/A tm __name__ N/A N/A N/A AttributeError N/A N/A N/A N/A N/A inspect ismodule imported N/A N/A N/A imported tm N/A