Пример #1
0
    def test_is_valid_bad_genesis(self):
        self.blockchain.chain[0].data = "Invalid data"

        with self.assertRaises(GenesisError):
            Blockchain.is_valid(self.blockchain.chain)
Пример #2
0
 def test_is_valid(self):
     Blockchain.is_valid(self.blockchain.chain)