Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad vararg kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str BoolOpOr AttributeLoad NameLoad attr NameLoad Str If NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Yield NameLoad finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore Call AttributeLoad NameLoad attr Str Dict Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
    flask.testing
    ~~~~~~~~~~~~~

    Implements test support helpers.  This module is lazily imported
    and usually not used in production environments.

    :copyright: (c) 2011 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.
 __future__ with_statement contextlib contextmanager werkzeug.test Client EnvironBuilder flask _request_ctx_stack urlparse urlparse make_test_environ_builder N/A N/A app path base_url N/A / None args kwargs N/A N/A Creates a new test builder with some application defaults thrown in. N/A http_host N/A N/A N/A app config get SERVER_NAME N/A app_root N/A N/A N/A app config get APPLICATION_ROOT N/A N/A base_url None N/A N/A url N/A urlparse path N/A base_url N/A http://%s/ N/A N/A url netloc http_host localhost N/A app_root N/A N/A base_url N/A N/A app_root lstrip / N/A N/A url netloc N/A N/A path N/A url path N/A N/A EnvironBuilder path base_url args kwargs N/A FlaskClient N/A Client N/A N/A Works like a regular Werkzeug test client but has some knowledge about
    how Flask works to defer the cleanup of the request context stack to the
    end of a with body when used in a with statement.  For general information
    about how to use this class refer to :class:`werkzeug.test.Client`.

    Basic usage is outlined in the :ref:`testing` chapter.
     N/A preserve_context False session_transaction N/A N/A self N/A args kwargs N/A N/A When used in combination with a with statement this opens a
        session transaction.  This can be used to modify the session that
        the test client uses.  Once the with block is left the session is
        stored back.

            with client.session_transaction() as session:
                session['value'] = 42

        Internally this is implemented by going through a temporary test
        request context and since session handling could depend on
        request variables this function accepts the same arguments as
        :meth:`~flask.Flask.test_request_context` which are directly
        passed through.
         N/A N/A N/A self cookie_jar None N/A N/A N/A RuntimeError Session transactions only make sense with cookies enabled. N/A app N/A self application N/A environ_overrides N/A N/A kwargs setdefault environ_overrides N/A N/A N/A N/A N/A self cookie_jar inject_wsgi environ_overrides N/A outer_reqctx N/A _request_ctx_stack top N/A N/A N/A app test_request_context args kwargs c N/A N/A sess N/A N/A app open_session N/A c request N/A N/A sess None N/A N/A N/A RuntimeError Session backend did not open a session. Check the configuration N/A N/A N/A _request_ctx_stack push outer_reqctx N/A N/A N/A N/A sess N/A N/A N/A N/A _request_ctx_stack pop N/A resp N/A N/A app response_class N/A N/A N/A N/A N/A app session_interface is_null_session sess N/A N/A N/A N/A app save_session sess resp N/A headers N/A N/A resp get_wsgi_headers N/A N/A c request environ N/A N/A N/A N/A self cookie_jar extract_wsgi N/A N/A c request environ headers N/A contextmanager open N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A kwargs setdefault environ_overrides N/A N/A flask._preserve_context N/A self preserve_context N/A as_tuple N/A N/A kwargs pop as_tuple False N/A buffered N/A N/A kwargs pop buffered False N/A follow_redirects N/A N/A kwargs pop follow_redirects False N/A builder N/A make_test_environ_builder N/A self application args kwargs N/A N/A N/A Client open self builder as_tuple as_tuple buffered buffered follow_redirects follow_redirects N/A __enter__ N/A N/A self N/A N/A N/A N/A self preserve_context N/A N/A N/A RuntimeError Cannot nest client invocations N/A N/A self preserve_context True N/A self N/A __exit__ N/A N/A self exc_type exc_value tb N/A N/A N/A N/A self preserve_context False N/A top N/A _request_ctx_stack top N/A N/A N/A top None N/A top preserved N/A N/A N/A N/A top pop N/A N/A