old_contents: from mangopaysdk.entities.user import User
  from mangopaysdk.entities.bankaccount import BankAccount
  from mangopaysdk.entities.cardregistration import CardRegistration
  
  
  class MockMangoPayApi():
  
      def __init__(self, user_id=None, bank_account_id=None,
                   card_registration_id=None):
          self.users = MockUserApi(user_id, bank_account_id)
          self.cardRegistrations = MockCardRegistrationApi(card_registration_id)
  
  
  class MockUserApi():
  
      def __init__(self, user_id, bank_account_id):
          self.user_id = user_id
          self.bank_account_id = bank_account_id
  
      def Create(self, user):
          if isinstance(user, User):
              user.Id = self.user_id
              return user
          else:
              raise("User must be a User Entity")
  
      def CreateBankAccount(self, user_id, bank_account):
          if isinstance(bank_account, BankAccount) and isinstance(user_id, str):
              bank_account.Id = self.bank_account_id
              return bank_account
          else:
              raise("Arguements are the wrong types")
  
      def Update(self, user):
          if isinstance(user, User) and user.Id:
              return user
          else:
              raise("User must be a User Entity with an Id")
  
  
  class MockCardRegistrationApi():
  
      def __init__(self, card_registration_id):
          self.card_registration_id = card_registration_id
  
      def Create(self, card_registration):
          if isinstance(card_registration, CardRegistration):
              card_registration.Id = self.card_registration_id
              return card_registration
          else:
              raise BaseException(
                  "Card Registration must be a CardRegistration Entity")
  
new_contents: from mangopaysdk.entities.user import User
  from mangopaysdk.entities.bankaccount import BankAccount
  from mangopaysdk.entities.cardregistration import CardRegistration
  
  
  class MockMangoPayApi():
  
      def __init__(self, user_id=None, bank_account_id=None,
                   card_registration_id=None):
          self.users = MockUserApi(user_id, bank_account_id)
          self.cardRegistrations = MockCardRegistrationApi(card_registration_id)
  
  
  class MockUserApi():
  
      def __init__(self, user_id, bank_account_id):
          self.user_id = user_id
          self.bank_account_id = bank_account_id
  
      def Create(self, user):
          if isinstance(user, User):
              user.Id = self.user_id
              return user
          else:
              raise BaseException("User must be a User Entity")
  
      def CreateBankAccount(self, user_id, bank_account):
          if isinstance(bank_account, BankAccount) and isinstance(user_id, str):
              bank_account.Id = self.bank_account_id
              return bank_account
          else:
              raise BaseException("Arguements are the wrong types")
  
      def Update(self, user):
          if isinstance(user, User) and user.Id:
              return user
          else:
              raise BaseException("User must be a User Entity with an Id")
  
  
  class MockCardRegistrationApi():
  
      def __init__(self, card_registration_id):
          self.card_registration_id = card_registration_id
  
      def Create(self, card_registration):
          if isinstance(card_registration, CardRegistration):
              card_registration.Id = self.card_registration_id
              return card_registration
          else:
              raise BaseException(
                  "Card Registration must be a CardRegistration Entity")
  
subject: Fix raise statements