def test_authorize_unauthorize_neither_set(self): with self.assertRaises(XRPLModelException): DepositPreauth( account=_ACCOUNT, fee=_FEE, sequence=_SEQUENCE, )
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
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
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)