(self)
| 157 | mock.call('test2.py', 45)]) |
| 158 | |
| 159 | def test_sync_source_line(self): |
| 160 | # Test that .sync_source_line() will set the flist.gotofileline with fixed frame. |
| 161 | test_code = compile(TEST_CODE, 'test_sync.py', 'exec') |
| 162 | test_frame = MockFrame(test_code, 1) |
| 163 | self.debugger.frame = test_frame |
| 164 | |
| 165 | self.debugger.flist = Mock() |
| 166 | with patch('idlelib.debugger.os.path.exists', return_value=True): |
| 167 | self.debugger.sync_source_line() |
| 168 | self.debugger.flist.gotofileline.assert_called_once_with('test_sync.py', 1) |
| 169 | |
| 170 | |
| 171 | class DebuggerGuiTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected