Ejemplo n.º 1
0
    def test_unsigned_block_return_false(self):

        # Arrange
        block = Block()

        # Assert
        assert block.is_signed() is False
Ejemplo n.º 2
0
    def test_signed_block_return_true(self):

        # Arrange
        block = Block()
        random_sign(block, REF_PUB_KEY, REF_PRIV_KEY)

        # Assert
        assert block.is_signed() is True