commit abdb7f847028dd2863e2dbd9f9190d2f8b3530e9
parent f6661fdd2c9970970401b77db8383640222e4a5d
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 15 Jan 2016 18:14:06 +0100
fix tests
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/tests/test_transaction.py b/lib/tests/test_transaction.py
@@ -1,5 +1,6 @@
import unittest
from lib import transaction
+from lib.bitcoin import TYPE_ADDRESS
import pprint
@@ -68,7 +69,7 @@ class TestTransaction(unittest.TestCase):
'address': '14CHYaaByjJZpx4oHBpfDMdqhTyXnZ3kVs',
'prevout_n': 0,
'scriptPubKey': '76a914230ac37834073a42146f11ef8414ae929feaafc388ac',
- 'type': 'address',
+ 'type': TYPE_ADDRESS,
'value': 1000000}],
'version': 1
}
@@ -113,7 +114,7 @@ class TestTransaction(unittest.TestCase):
'address': '14CHYaaByjJZpx4oHBpfDMdqhTyXnZ3kVs',
'prevout_n': 0,
'scriptPubKey': '76a914230ac37834073a42146f11ef8414ae929feaafc388ac',
- 'type': 'address',
+ 'type': TYPE_ADDRESS,
'value': 1000000}],
'version': 1
}