def test_cache_call_signatures():
 def check(column, call_name, path=None):
  assert (jedi.Script(s, 1, column, path).call_signatures()[0].name == call_name)
 s = 'str(int())'
 for i in range(3):
  check(8, 'int')
  check(4, 'str')
 for i in range(3):
  check(8, 'int', 'boo')
  check(4, 'str', 'boo')

def test_cache_call_signatures ( ) : def check ( column , call_name , path = None ) : assert ( jedi . Script ( s , 1 , column , path ) . call_signatures ( ) [ 0 ] . name == call_name ) s = 'str(int())' for i in range ( 3 ) : check ( 8 , 'int' ) check ( 4 , 'str' ) for i in range ( 3 ) : check ( 8 , 'int' , 'boo' ) check ( 4 , 'str' , 'boo' )
see github issue #390 .