def METHOD_NAME(self):
    self.server = create_authorization_server(self.app, self.USE_CACHE)
    user = User(username='foo')
    db.session.add(user)
    db.session.commit()
    client = Client(
        user_id=user.id,
        client_id='client',
        client_secret='secret',
        default_redirect_uri='https://a.b',
    )
    db.session.add(client)
    db.session.commit()