(self)
| 557 | self.assertEqual(tx.serialize(), raw_tx) |
| 558 | |
| 559 | def test_input_value(self): |
| 560 | tx_hash = 'd1c789a9c60383bf715f3f6ad9d14b91fe55f3deb369fe5d9280cb1a01793f81' |
| 561 | index = 0 |
| 562 | want = 42505594 |
| 563 | tx_in = TxIn(bytes.fromhex(tx_hash), index) |
| 564 | self.assertEqual(tx_in.value(), want) |
| 565 | |
| 566 | def test_input_pubkey(self): |
| 567 | tx_hash = 'd1c789a9c60383bf715f3f6ad9d14b91fe55f3deb369fe5d9280cb1a01793f81' |