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

        # not enough balance
        ec, message = mvs_rpc.didsend(Zac.name, Zac.password, Alice.did_symbol,
                                      10**5, 10**4, "test_2_didsend_etp")
        self.assertEqual(ec, 5302, message)
Esempio n. 2
0
 def didsend_etp(self, to_, amount):
     '''
     :param to_: to did/address
     '''
     result, message = mvs_rpc.didsend(self.name, self.password, to_, amount)
     assert (result == 0)
     return message["hash"]