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

Method test_is_singleton

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

Source from the content-addressed store, hash-verified

36 T('ff'*0x10000, '4e00000100' + 'ff'*0x10000)
37
38 def test_is_singleton(self):
39 self.assertTrue(OP_0 is CScriptOp(0x00))
40 self.assertTrue(OP_1 is CScriptOp(0x51))
41 self.assertTrue(OP_16 is CScriptOp(0x60))
42 self.assertTrue(OP_CHECKSIG is CScriptOp(0xac))
43
44 for i in range(0x0, 0x100):
45 self.assertTrue(CScriptOp(i) is CScriptOp(i))
46
47 def test_encode_decode_op_n(self):
48 def t(n, op):

Callers

nothing calls this directly

Calls 1

CScriptOpClass · 0.85

Tested by

no test coverage detected