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

Method T

bitcoin/tests/test_key.py:20–24  ·  view source on GitHub ↗
(hex_pubkey, is_valid, is_fullyvalid, is_compressed)

Source from the content-addressed store, hash-verified

18class Test_CPubKey(unittest.TestCase):
19 def test(self):
20 def T(hex_pubkey, is_valid, is_fullyvalid, is_compressed):
21 key = CPubKey(x(hex_pubkey))
22 self.assertEqual(key.is_valid, is_valid)
23 self.assertEqual(key.is_fullyvalid, is_fullyvalid)
24 self.assertEqual(key.is_compressed, is_compressed)
25
26 T('', False, False, False)
27 T('00', True, True, False) # why is this valid?

Callers

nothing calls this directly

Calls 2

xFunction · 0.90
CPubKeyClass · 0.85

Tested by

no test coverage detected