Commit b8d31f58 authored by Moul's avatar Moul

[mod] tx.doc: rename test to main version (v10)

parent 47b300f6
...@@ -69,7 +69,7 @@ D:GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92:471 ...@@ -69,7 +69,7 @@ D:GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92:471
XDQeEMcJDd+XVGaFIZc8d4kKRJgsPuWAPVNG5UKNk8mDZx2oE1kTP/hbxiFx6yDouBELCswuf/X6POK9ES7JCA== XDQeEMcJDd+XVGaFIZc8d4kKRJgsPuWAPVNG5UKNk8mDZx2oE1kTP/hbxiFx6yDouBELCswuf/X6POK9ES7JCA==
""" """
tx_raw_v3 = """Version: 3 tx_raw = """Version: 10
Type: Transaction Type: Transaction
Currency: beta_brousouf Currency: beta_brousouf
Blockstamp: 32-DB30D958EE5CB75186972286ED3F4686B8A1C2CD Blockstamp: 32-DB30D958EE5CB75186972286ED3F4686B8A1C2CD
...@@ -206,12 +206,12 @@ class TestTransaction(unittest.TestCase): ...@@ -206,12 +206,12 @@ class TestTransaction(unittest.TestCase):
"XDQeEMcJDd+XVGaFIZc8d4kKRJgsPuWAPVNG5UKNk8mDZx2oE1kTP/hbxiFx6yDouBELCswuf/X6POK9ES7JCA==") "XDQeEMcJDd+XVGaFIZc8d4kKRJgsPuWAPVNG5UKNk8mDZx2oE1kTP/hbxiFx6yDouBELCswuf/X6POK9ES7JCA==")
def test_fromraw_toraw_v3(self): def test_fromraw_toraw(self):
tx = Transaction.from_signed_raw(tx_raw_v3) tx = Transaction.from_signed_raw(tx_raw)
rendered_tx = tx.signed_raw() rendered_tx = tx.signed_raw()
from_rendered_tx = Transaction.from_signed_raw(rendered_tx) from_rendered_tx = Transaction.from_signed_raw(rendered_tx)
self.assertEqual(tx.version, 3) self.assertEqual(tx.version, 10)
self.assertEqual(tx.currency, "beta_brousouf") self.assertEqual(tx.currency, "beta_brousouf")
self.assertEqual(tx.blockstamp.number, 32) self.assertEqual(tx.blockstamp.number, 32)
self.assertEqual(tx.blockstamp.sha_hash, "DB30D958EE5CB75186972286ED3F4686B8A1C2CD") self.assertEqual(tx.blockstamp.sha_hash, "DB30D958EE5CB75186972286ED3F4686B8A1C2CD")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment