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