(self)
| 46 | |
| 47 | class TestCInv(unittest.TestCase): |
| 48 | def test_serialization(self): |
| 49 | inv = CInv() |
| 50 | inv.type = 123 |
| 51 | inv.hash = b"0" * 32 |
| 52 | stream = BytesIO() |
| 53 | |
| 54 | inv.stream_serialize(stream) |
| 55 | serialized = BytesIO(stream.getvalue()) |
| 56 | |
| 57 | deserialized = CInv.stream_deserialize(serialized) |
| 58 | self.assertEqual(deserialized, inv) |
| 59 | |
| 60 | |
| 61 | class TestCAddress(unittest.TestCase): |
nothing calls this directly
no test coverage detected