mirror of
https://github.com/davidhalter/jedi.git
synced 2026-04-28 05:35:29 +08:00
Test module attributes.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from jedi import Script
|
||||
|
||||
|
||||
def test_module_attributes():
|
||||
def_, = Script('__name__').completions()
|
||||
assert def_.name == '__name__'
|
||||
assert def_.line == None
|
||||
assert def_.column == None
|
||||
str_, = def_._goto_definitions()
|
||||
assert str_.name == 'str'
|
||||
Reference in New Issue
Block a user