def test_simple_assist(): env = Environment() source = cleantabs(''' from os import popen p''') match, result = env.assist('.', source, len(source), 'test.py') assert result == ['popen', 'pow', 'print', 'property']
def test_project_config(): env = Environment() env.configure_project('.', {'libs':['/usr/lib/python2.7/site-packages/exo-0.6']}) source = cleantabs(''' from exo import IconView IconView().props.''') match, result = env.assist('.', source, len(source), 'test.py') assert 'layout_mode' in result