move some docstring tests, #181

This commit is contained in:
David Halter
2013-08-07 17:37:14 +04:30
parent 686e29c2f2
commit 5b4ee16317

View File

@@ -34,3 +34,24 @@ class TestDocstring(unittest.TestCase):
class DocstringCompletion():
#? []
""" asdfas """''').completions()
def test_docstrings_type_dotted_import(self):
s = """
def func(arg):
'''
:type arg: threading.Thread
'''
arg."""
names = [c.name for c in jedi.Script(s).completions()]
assert 'start' in names
def test_docstrings_type_str(self):
s = """
def func(arg):
'''
:type arg: str
'''
arg."""
names = [c.name for c in jedi.Script(s).completions()]
assert 'join' in names