コード例 #1
0
 def test_authorize_unauthorize_neither_set(self):
     with self.assertRaises(XRPLModelException):
         DepositPreauth(
             account=_ACCOUNT,
             fee=_FEE,
             sequence=_SEQUENCE,
         )
コード例 #2
0
 def test_unauthorize(self):
     deposit_preauth = DepositPreauth(
         account=ACCOUNT,
         sequence=WALLET.sequence,
         unauthorize=ADDRESS,
     )
     response = submit_transaction(deposit_preauth, WALLET)
     self.assertEqual(response.status, ResponseStatus.SUCCESS)
     WALLET.sequence += 1
コード例 #3
0
 async def test_authorize(self, client):
     deposit_preauth = DepositPreauth(
         account=ACCOUNT,
         sequence=WALLET.sequence,
         authorize=ADDRESS,
     )
     response = await submit_transaction_async(deposit_preauth, WALLET)
     self.assertEqual(response.status, ResponseStatus.SUCCESS)
     WALLET.sequence += 1
コード例 #4
0
 def test_authorize(self):
     deposit_preauth = DepositPreauth(
         account=ACCOUNT,
         fee=FEE,
         sequence=WALLET.next_sequence_num,
         authorize=ADDRESS,
     )
     response = submit_transaction(deposit_preauth, WALLET)
     self.assertEqual(response.status, ResponseStatus.SUCCESS)