def create_auth_key(self, request, user, expiry=None, **kw):
        if not expiry:
            expiry = request.cache.auth_backend.auth_key_expiry(request)
        odm = request.app.odm()
        with odm.begin() as session:
            reg = odm.registration(id=digest(user.username),
                                   user_id=user.id,
                                   expiry=expiry,
                                   confirmed=False)
            session.add(reg)

        return reg.id
Check that a non existing method return error 500.
dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/backends.py/AuthMixin.create_auth_key--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_soap.py/SOAPTestCase.testMethodNotFound