

def store_credentials(self, token, credentials):
    assert (('id' in credentials) and ('key' in credentials))
    try:
        self.get_token(token['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/VarMisuse@37/45 `credentials`->`token`