From 441c001bf9adae7caa314f070fe984b284aecc89 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 24 Jan 2014 01:34:13 +0100 Subject: [PATCH] test for not working call signatures with whitespace issues --- test/test_call_signatures.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_call_signatures.py b/test/test_call_signatures.py index 771ac2f7..e8f42538 100644 --- a/test/test_call_signatures.py +++ b/test/test_call_signatures.py @@ -3,6 +3,7 @@ import textwrap from .helpers import TestCase from jedi import Script + class TestCallSignatures(TestCase): def _run(self, source, expected_name, expected_index=0, line=None, column=None): signatures = Script(source, line, column).call_signatures() @@ -126,3 +127,11 @@ class TestCallSignatures(TestCase): pass f(""") assert len(Script(s).call_signatures()) == 2 + + def test_call_signatures_whitespace(self): + s = textwrap.dedent("""\ + abs( + def x(): + pass + """) + self._run(s, 'abs', 0, line=1, column=5)