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

Method test_repr

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

Source from the content-addressed store, hash-verified

49 self.assertFalse(COutPoint(n=1).is_null())
50
51 def test_repr(self):
52 def T(outpoint, expected):
53 actual = repr(outpoint)
54 self.assertEqual(actual, expected)
55 T( COutPoint(),
56 'COutPoint()')
57 T( COutPoint(lx('4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b'), 0),
58 "COutPoint(lx('4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b'), 0)")
59
60 def test_str(self):
61 def T(outpoint, expected):

Callers

nothing calls this directly

Calls 2

COutPointClass · 0.85
lxFunction · 0.85

Tested by

no test coverage detected