Пример #1
0
 def test_deserialize_transaction_unknown_spec_tx(self):
     cmds = Commands(config=None, wallet=None, network=None)
     deser = cmds.deserialize(UNKNOWN_SPEC_TX)
     assert deser['extra_payload'] == UNKNOWN_SPEC_TX_EP_FOR_JSON
Пример #2
0
 def test_deserialize_transaction_v2(self):
     cmds = Commands(config=None, wallet=None, network=None)
     deser = cmds.deserialize(V2_TX)
     assert deser['extra_payload'] == ''
Пример #3
0
 def test_deserialize_transaction_cbtx(self):
     cmds = Commands(config=None, wallet=None, network=None)
     deser = cmds.deserialize(CB_TX_V2)
     assert deser['extra_payload'] == CB_TX_V2_EP_FOR_JSON
Пример #4
0
 def test_deserialize_transaction_unknown_spec_tx(self):
     cmds = Commands(config=None, wallet=None, network=None)
     with self.assertRaises(AxeTxError):
         cmds.deserialize(UNKNOWN_SPEC_TX)