Test handling a message payload with an unrecognized type.
(self)
| 269 | ) |
| 270 | |
| 271 | def test_handling_other_message(self): |
| 272 | """Test handling a message payload with an unrecognized type.""" |
| 273 | incoming = [ |
| 274 | ("server", {"message": "Some message.\n", "type": "unknown"}), |
| 275 | ] |
| 276 | self.do_test( |
| 277 | incoming=incoming, |
| 278 | expected_outgoing=[], |
| 279 | expected_stdout="Some message.\n", |
| 280 | ) |
| 281 | |
| 282 | @unittest.skipIf(sys.flags.optimize >= 2, "Help not available for -OO") |
| 283 | @subTests( |