(n, op)
| 46 | |
| 47 | def test_encode_decode_op_n(self): |
| 48 | def t(n, op): |
| 49 | actual = CScriptOp.encode_op_n(n) |
| 50 | self.assertEqual(actual, op) |
| 51 | self.assertTrue(isinstance(actual, CScriptOp)) |
| 52 | |
| 53 | actual = op.decode_op_n() |
| 54 | self.assertEqual(actual, n) |
| 55 | self.assertTrue(isinstance(actual, int)) |
| 56 | |
| 57 | t(0, OP_0) |
| 58 | t(1, OP_1) |
nothing calls this directly
no test coverage detected