MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / test_MoneyRange

Method test_MoneyRange

bitcoin/tests/test_core.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class Test_Money(unittest.TestCase):
35 def test_MoneyRange(self):
36 self.assertFalse(MoneyRange(-1))
37 self.assertTrue(MoneyRange(0))
38 self.assertTrue(MoneyRange(100000))
39 self.assertTrue(MoneyRange(21000000 * COIN)) # Maximum money on Bitcoin network
40 self.assertFalse(MoneyRange(21000001 * COIN))
41
42 def test_MoneyRangeCustomParams(self):
43 highMaxParamsType = type(str('CoreHighMainParams'), (CoreMainParams,object), {'MAX_MONEY': 22000000 * COIN })

Callers

nothing calls this directly

Calls 1

MoneyRangeFunction · 0.85

Tested by

no test coverage detected