From 4d18fd9711c86befd1c025d35d1d18dd086332c6 Mon Sep 17 00:00:00 2001 From: flying-scorpio Date: Wed, 6 Nov 2019 10:14:26 +0100 Subject: [PATCH] corrected one test --- tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests.py b/tests.py index 8cc2c2b..4e392e6 100644 --- a/tests.py +++ b/tests.py @@ -4,9 +4,6 @@ import unittest from blockchain import Blockchain -# TODO write following tests: - - class TestBlockchain(unittest.TestCase): """TestCase for Blockchains.""" @@ -27,7 +24,7 @@ class TestBlock(unittest.TestCase): def test_genesis_block_has_previous_hash_of_0(self): """Genesis block should have a previous hash of 0.""" - self.assertEqual(self.blockchain.chain[0].previous_hash, 0) + self.assertEqual(self.blockchain.chain[0].previous_hash, '0') def test_block_proof_starts_with_difficulty_zeros(self): """Block proof should always start with {difficulty} zeros."""