Add the long forgotten tests for test_usages.py

This commit is contained in:
Dave Halter
2016-07-17 22:45:12 +02:00
parent 2563746810
commit 4b0e164d91

View File

@@ -0,0 +1,6 @@
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]