mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +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]
|