Test reading commands from the socket.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected