Test handling a message payload with type='error'.
(self)
| 258 | ) |
| 259 | |
| 260 | def test_handling_error_message(self): |
| 261 | """Test handling a message payload with type='error'.""" |
| 262 | incoming = [ |
| 263 | ("server", {"message": "Some message or other.", "type": "error"}), |
| 264 | ] |
| 265 | self.do_test( |
| 266 | incoming=incoming, |
| 267 | expected_outgoing=[], |
| 268 | expected_stdout="*** Some message or other.\n", |
| 269 | ) |
| 270 | |
| 271 | def test_handling_other_message(self): |
| 272 | """Test handling a message payload with an unrecognized type.""" |