(self)
| 32 | |
| 33 | class TestCAlert(unittest.TestCase): |
| 34 | def test_serialization(self): |
| 35 | alert = CAlert() |
| 36 | alert.setCancel = [1, 2, 3] |
| 37 | alert.strComment = b"Comment" |
| 38 | stream = BytesIO() |
| 39 | |
| 40 | alert.stream_serialize(stream) |
| 41 | serialized = BytesIO(stream.getvalue()) |
| 42 | |
| 43 | deserialized = CAlert.stream_deserialize(serialized) |
| 44 | self.assertEqual(deserialized, alert) |
| 45 | |
| 46 | |
| 47 | class TestCInv(unittest.TestCase): |
nothing calls this directly
no test coverage detected