mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
7 lines
170 B
Python
7 lines
170 B
Python
import jedi
|
|
|
|
|
|
def test_import_usage():
|
|
s = jedi.Script("from .. import foo", line=1, column=18, path="foo.py")
|
|
assert [usage.line for usage in s.usages()] == [1]
|