(self)
| 177 | self.repl.cursor_offset = len(line) |
| 178 | |
| 179 | def test_func_name(self): |
| 180 | for line, expected_name in [ |
| 181 | ("spam(", "spam"), |
| 182 | # map pydoc has no signature in pypy |
| 183 | ("spam(any([]", "any") if pypy else ("spam(map([]", "map"), |
| 184 | ("spam((), ", "spam"), |
| 185 | ]: |
| 186 | self.set_input_line(line) |
| 187 | self.assertTrue(self.repl.get_args()) |
| 188 | self.assertEqual(self.repl.current_func.__name__, expected_name) |
| 189 | |
| 190 | def test_func_name_method_issue_479(self): |
| 191 | for line, expected_name in [ |
nothing calls this directly
no test coverage detected