From 2f3304b9f1fb2f58d9f9199dac71fd2c5a43cea0 Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 21 Aug 2013 15:47:25 +0430 Subject: [PATCH] test for multiple call_signatures --- test/test_call_signatures.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_call_signatures.py b/test/test_call_signatures.py index f6914bbb..9505b3ae 100644 --- a/test/test_call_signatures.py +++ b/test/test_call_signatures.py @@ -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