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

Method test_read_command

Lib/test/test_remote_pdb.py:868–875  ·  view source on GitHub ↗

Test reading commands from the socket.

(self)

Source from the content-addressed store, hash-verified

866 self.assertEqual(outputs[1], {"message": "Test error", "type": "error"})
867
868 def test_read_command(self):
869 """Test reading commands from the socket."""
870 # Add test input
871 self.sockfile.add_input({"reply": "help"})
872
873 # Read the command
874 cmd = self.pdb._read_reply()
875 self.assertEqual(cmd, "help")
876
877 def test_read_command_EOF(self):
878 """Test reading EOF command."""

Callers

nothing calls this directly

Calls 3

add_inputMethod · 0.80
_read_replyMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected