def test_3_didsend_etp_from(self):
        # account password match error
        ec, message = mvs_rpc.didsend_from(Alice.name, Alice.password + '1',
                                           Alice.mainaddress(),
                                           Zac.mainaddress(), 10**5, 10**4,
                                           "test_3_didsend_etp_from")
        self.assertEqual(ec, 1000, message)

        # not enough balance
        ec, message = mvs_rpc.didsend_from(Zac.name, Zac.password,
                                           Zac.mainaddress(), Alice.did_symbol,
                                           10**5, 10**4,
                                           "test_3_didsend_etp_from")
        self.assertEqual(ec, 3302, message)
Example #2
0
 def didsend_etp_from(self, from_, to_, amount):
     '''
     :param from_: did/address
     :param to_: did/address
     '''
     result, message = mvs_rpc.didsend_from(self.name, self.password, from_, to_, amount)
     assert (result == 0)
     return message["hash"]