def test_is_valid_bad_genesis(self): self.blockchain.chain[0].data = "Invalid data" with self.assertRaises(GenesisError): Blockchain.is_valid(self.blockchain.chain)
def test_is_valid(self): Blockchain.is_valid(self.blockchain.chain)
def test_is_valid_bad_genesis(self): self.blockchain.chain[0].data = "Invalid data" with self.assertRaises(GenesisError): Blockchain.is_valid(self.blockchain.chain)
def test_is_valid(self): Blockchain.is_valid(self.blockchain.chain)