1
0
forked from VimPlug/jedi

test for multiple call_signatures

This commit is contained in:
David Halter
2013-08-21 15:47:25 +04:30
parent eca786bf0e
commit 2f3304b9f1

View File

@@ -112,3 +112,14 @@ class TestCallSignatures(TestCase):
pass
f( )""")
self._run(s, 'f', 0, line=3, column=3)
def test_multiple_signatures(self):
s = textwrap.dedent("""\
if x:
def f(a, b):
pass
else:
def f(a, b):
pass
f(""")
assert len(Script(s).call_signatures()) == 2