Test the detach method.
(self)
| 967 | ) |
| 968 | |
| 969 | def test_detach(self): |
| 970 | """Test the detach method.""" |
| 971 | with unittest.mock.patch.object(self.sockfile, 'close') as mock_close: |
| 972 | self.pdb.detach() |
| 973 | mock_close.assert_called_once() |
| 974 | self.assertFalse(self.pdb.quitting) |
| 975 | |
| 976 | def test_cmdloop(self): |
| 977 | """Test the command loop with various commands.""" |
nothing calls this directly
no test coverage detected