you are raising the exception unconditionally?  seems like you're missing a condition like:
   if set(instrument_ids) != set(self._ia_clients.keys()):
      raise ....