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

Method test_repr

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

Source from the content-addressed store, hash-verified

86 self.assertFalse(CTxIn(nSequence=0).is_final())
87
88 def test_repr(self):
89 def T(txin, expected):
90 actual = repr(txin)
91 self.assertEqual(actual, expected)
92 T( CTxIn(),
93 'CTxIn(COutPoint(), CScript([]), 0xffffffff)')
94
95class Test_CMutableTxIn(unittest.TestCase):
96 def test_GetHash(self):

Callers

nothing calls this directly

Calls 1

CTxInClass · 0.85

Tested by

no test coverage detected