(self)
| 43 | |
| 44 | class Test_COutPoint(unittest.TestCase): |
| 45 | def test_is_null(self): |
| 46 | self.assertTrue(COutPoint().is_null()) |
| 47 | self.assertTrue(COutPoint(hash=b'\x00'*32,n=0xffffffff).is_null()) |
| 48 | self.assertFalse(COutPoint(hash=b'\x00'*31 + b'\x01').is_null()) |
| 49 | self.assertFalse(COutPoint(n=1).is_null()) |
| 50 | |
| 51 | def test_repr(self): |
| 52 | def T(outpoint, expected): |