def METHOD_NAME(self):
    # We're about to call url_for, so we must create an
    # application context.
    os.environ['AUTOINITIALIZE'] = "False"
    from api.app import app
    self.app = app
    del os.environ['AUTOINITIALIZE']
    with self.app.test_request_context("/"):
        docs = self.api.authentication_flow_document(self._db)
        for doc in docs:
            assert self.api.DISPLAY_NAME == doc['description']
            assert doc['type'] in [self.api.FLOW_TYPE_BASIC, self.api.FLOW_TYPE_OAUTH]