added bitcoin.script.create_push_script and improved parsing
[p2pool.git] / p2pool / test / bitcoin / test_script.py
index 7d479d7..15be06c 100644 (file)
@@ -7,6 +7,6 @@ class Test(unittest.TestCase):
         data = '76  A9  14 89 AB CD EF AB BA AB BA AB BA AB BA AB BA AB BA AB BA AB BA  88 AC'.replace(' ', '').decode('hex')
         self.assertEquals(
             list(script.parse(data)),
-            [('UNK_118', ''), ('UNK_169', ''), ('PUSH20', '\x89\xab\xcd\xef\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba'), ('UNK_136', ''), ('CHECKSIG', '')],
+            [('UNK_118', None), ('UNK_169', None), ('PUSH', '\x89\xab\xcd\xef\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba\xab\xba'), ('UNK_136', None), ('CHECKSIG', None)],
         )
         self.assertEquals(script.get_sigop_count(data), 1)