Files
jedi/test/test_api/test_usages.py
2017-12-29 18:40:17 +01:00

4 lines
157 B
Python

def test_import_usage(Script):
s = Script("from .. import foo", line=1, column=18, path="foo.py")
assert [usage.line for usage in s.usages()] == [1]