(self)
| 424 | ) |
| 425 | |
| 426 | def test_parse_errors(self): |
| 427 | with self.assertRaises(ProtocolError): |
| 428 | Close.parse(b"\x03") |
| 429 | with self.assertRaises(ProtocolError): |
| 430 | Close.parse(b"\x03\xe7") |
| 431 | with self.assertRaises(UnicodeDecodeError): |
| 432 | Close.parse(b"\x03\xe8\xff\xff") |
| 433 | |
| 434 | def test_serialize_errors(self): |
| 435 | with self.assertRaises(ProtocolError): |