Esempio n. 1
0
    def test_get_diff_threshold(self):

        blockchain = Blockchain()
        self.assertEqual(100, blockchain.get_diff_threshold())
Esempio n. 2
0
    def test_set_diff_threshold(self):

        blockchain = Blockchain()
        blockchain.set_diff_threshold(diff_threshold=10)

        self.assertEqual(10, blockchain.get_diff_threshold())