MCPcopy Index your code
hub / github.com/python/cpython / test_detach

Method test_detach

Lib/test/test_remote_pdb.py:969–974  ·  view source on GitHub ↗

Test the detach method.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 3

assert_called_onceMethod · 0.80
assertFalseMethod · 0.80
detachMethod · 0.45

Tested by

no test coverage detected