MCPcopy Index your code
hub / github.com/bpython/bpython / test_lambda_position

Method test_lambda_position

bpython/test/test_repl.py:220–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218 self.assertEqual(self.repl.arg_pos, "c")
219
220 def test_lambda_position(self):
221 self.set_input_line("spam(lambda a, b: 1, ")
222 self.assertTrue(self.repl.get_args())
223 self.assertTrue(self.repl.funcprops)
224 # Argument position
225 self.assertEqual(self.repl.arg_pos, 1)
226
227 @unittest.skipIf(pypy, "range pydoc has no signature in pypy")
228 def test_issue127(self):

Callers

nothing calls this directly

Calls 2

set_input_lineMethod · 0.95
get_argsMethod · 0.80

Tested by

no test coverage detected