MCPcopy
hub / github.com/petertodd/python-bitcoinlib / test_is_null

Method test_is_null

bitcoin/tests/test_transactions.py:45–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43
44class Test_COutPoint(unittest.TestCase):
45 def test_is_null(self):
46 self.assertTrue(COutPoint().is_null())
47 self.assertTrue(COutPoint(hash=b'\x00'*32,n=0xffffffff).is_null())
48 self.assertFalse(COutPoint(hash=b'\x00'*31 + b'\x01').is_null())
49 self.assertFalse(COutPoint(n=1).is_null())
50
51 def test_repr(self):
52 def T(outpoint, expected):

Callers

nothing calls this directly

Calls 2

COutPointClass · 0.85
is_nullMethod · 0.45

Tested by

no test coverage detected