(self)
| 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): |