def __init__(self, protobuf_block=None): self._data = protobuf_block if protobuf_block is None: self._data = xrd_pb2.Block() self.blockheader = BlockHeader(self._data.header)
def test_init(self, time_mock): block_header = BlockHeader() self.assertIsNotNone(block_header) # just to avoid warnings