def test_invalid_block(self): block_list = self._create_blocks(1, 1, valid_batch=False) block = block_list[0] valid = verifier.validate_block(block) self.assertFalse(valid) block_list = self._create_blocks(1, 1, valid_block=False) block = block_list[0] valid = verifier.validate_block(block) self.assertFalse(valid)
def test_valid_block(self): block_list = self._create_blocks(1, 1) block = block_list[0] valid = verifier.validate_block(block) self.assertTrue(valid)