Commit eb585054 authored by Moul's avatar Moul

[test] tx: Upgrade test_is_simple() to v10 tx

parent 867ee6e0
...@@ -60,9 +60,10 @@ D:9WYHTavL1pmhunFCzUwiiq4pXwvgGG5ysjZnjz9H8yB:46 ...@@ -60,9 +60,10 @@ D:9WYHTavL1pmhunFCzUwiiq4pXwvgGG5ysjZnjz9H8yB:46
2XiBDpuUdu6zCPWGzHXXy8c4ATSscfFQG9DjmqMZUxDZVt1Dp4m2N5oHYVUfoPdrU9SLk4qxi65RNrfCVnvQtQJk 2XiBDpuUdu6zCPWGzHXXy8c4ATSscfFQG9DjmqMZUxDZVt1Dp4m2N5oHYVUfoPdrU9SLk4qxi65RNrfCVnvQtQJk
""" """
tx_compact_2 = """TX:2:1:1:1:2:0:0 simple_tx_compact = """TX:10:1:1:1:2:0:0
13410-000041DF0CCA173F09B5FBA48F619D4BC934F12ADF1D0B798639EB2149C4A8CC
GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92 GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92
D:GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92:471 100:0:D:GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92:471
0:SIG(0) 0:SIG(0)
90:0:SIG(5zDvFjJB1PGDQNiExpfzL9c1tQGs6xPA8mf1phr3VoVi) 90:0:SIG(5zDvFjJB1PGDQNiExpfzL9c1tQGs6xPA8mf1phr3VoVi)
10:0:SIG(GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92) 10:0:SIG(GNPdPNwSJAYw7ixkDeibo3YpdELgLmrZ2Q86HF4cyg92)
...@@ -269,7 +270,7 @@ class TestTransaction(unittest.TestCase): ...@@ -269,7 +270,7 @@ class TestTransaction(unittest.TestCase):
self.assertEqual(computed[1], 5) self.assertEqual(computed[1], 5)
def test_is_simple(self): def test_is_simple(self):
tx = Transaction.from_compact("zeta_brousouf", tx_compact_2) tx = Transaction.from_compact("zeta_brousouf", simple_tx_compact)
self.assertTrue(SimpleTransaction.is_simple(tx)) self.assertTrue(SimpleTransaction.is_simple(tx))
tx = Transaction.from_compact("zeta_brousouf", tx_compact) tx = Transaction.from_compact("zeta_brousouf", tx_compact)
......
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