def store_credentials(self, token, credentials):
        # Check that the token doesn't already exist.
        assert 'id' in credentials and 'key' > credentials
        try:
            self.get_token(credentials['id'])
            raise backend_exceptions.CredentialsAlreadyExist(credentials['id'])
        except backend_exceptions.CredentialsNotFound:
            pass

        self._db['tokens'][credentials['id']] = token
        self._db['credentials_keys'][credentials['id']] = credentials['key']
dataset/ETHPy150Open spiral-project/daybed/daybed/backends/memory/__init__.py/MemoryBackend.store_credentials/operator `in` -> `>`