message: added tests for prover_store_claim_offer
diff: from indy import wallet
  from indy.anoncreds import prover_store_claim_offer
  +from indy.error import ErrorCode, IndyError
  from tests.utils import storage, anoncreds
  from tests.utils.wallet import create_and_open_wallet
  @@ -31,3 +32,27 @@ async def test_prover_store_claim_offer_works(wallet_handle):
  claim_offer = anoncreds.get_claim_offer(anoncreds.ISSUER_DID, 1)
  await prover_store_claim_offer(wallet_handle, json.dumps(claim_offer))
  +
  +@pytest.mark.asyncio
  +async def test_prover_store_claim_offer_works_for_invalid_json(wallet_handle):
  + claim_offer = {"issuer_did": anoncreds.ISSUER_DID}
  +
  + try:
  + await prover_store_claim_offer(wallet_handle, json.dumps(claim_offer))
  + raise Exception("Failed")
  + except Exception as e:
  + assert type(IndyError(ErrorCode.CommonInvalidStructure)) == type(e) and \
  + IndyError(ErrorCode.CommonInvalidStructure).args == e.args
  +
  +
  +@pytest.mark.asyncio
  +async def test_prover_store_claim_offer_works_for_invalid_wallet(wallet_handle):
  + claim_offer = anoncreds.get_claim_offer(anoncreds.ISSUER_DID, 1)
  + invalid_wallet_handle = wallet_handle + 100
  +
  + try:
  + await prover_store_claim_offer(invalid_wallet_handle, json.dumps(claim_offer))
  + raise Exception("Failed")
  + except Exception as e:
  + assert type(IndyError(ErrorCode.WalletInvalidHandle)) == type(e) and \
  + IndyError(ErrorCode.WalletInvalidHandle).args == e.args
  