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

Method test_str

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

Source from the content-addressed store, hash-verified

58 "COutPoint(lx('4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b'), 0)")
59
60 def test_str(self):
61 def T(outpoint, expected):
62 actual = str(outpoint)
63 self.assertEqual(actual, expected)
64 T(COutPoint(),
65 '0000000000000000000000000000000000000000000000000000000000000000:4294967295')
66 T(COutPoint(lx('4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b'), 0),
67 '4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0')
68 T(COutPoint(lx('4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b'), 10),
69 '4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:10')
70
71class Test_CMutableOutPoint(unittest.TestCase):
72 def test_GetHash(self):

Callers

nothing calls this directly

Calls 2

COutPointClass · 0.85
lxFunction · 0.85

Tested by

no test coverage detected