Module Expr Str ImportFrom alias alias alias Import alias If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body FunctionDef arguments args NameParam NameParam defaults body Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert Call NameLoad NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list orelse ImportFrom alias alias alias alias alias alias ImportFrom alias alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore IfExp NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Call NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list
N/A N/A 
This module contains common parts for testing.
 nose.tools assert_equals assert_true raises N/A sys N/A N/A N/A sys version_info N/A 2 7 N/A assert_is N/A N/A a b N/A N/A N/A N/A a b N/A assert_is_not N/A N/A a b N/A N/A N/A N/A a b N/A assert_is_none N/A N/A a N/A N/A N/A N/A a None N/A assert_is_not_none N/A N/A a N/A N/A N/A N/A a None N/A assert_dict_equal N/A N/A a b N/A N/A N/A diff N/A N/A set N/A N/A a iteritems N/A set N/A N/A b iteritems N/A N/A diff dicts are different N/A assert_is_instance N/A N/A obj cls N/A N/A N/A N/A isinstance obj cls N/A %s is not an instance of %s N/A obj cls N/A N/A nose.tools assert_is assert_is_not assert_is_none assert_is_not_none assert_dict_equal assert_is_instance flask Flask json N/A flask_json CommonTest N/A object N/A N/A Common test class.

    It setups Flask application and Flask-JSON; also provides help method
    to send POST requests with JSON payload.

    Another feature is what this class pushes Flask's test request context
    on setup and pops it on teardown, so you don't need to use::

        with self.app.test_request_context():
            ...

    in test methods.
     setup N/A N/A self N/A N/A N/A N/A self app N/A Flask __name__ N/A N/A N/A N/A self app config N/A TESTING True N/A N/A self ext N/A N/A flask_json FlaskJSON N/A self app N/A N/A self client N/A N/A N/A N/A self ext _app test_client N/A N/A self ctx N/A N/A N/A self app test_request_context N/A N/A N/A N/A self ctx push N/A teardown N/A N/A self N/A N/A N/A N/A N/A N/A self ctx pop N/A post_json N/A N/A self url data raw N/A False N/A N/A Helper method to send JSON POST requests.

        Usage:

            self.post_json('/some/url', dict(param=value))
            self.post_json('/some/url', '{"param": "value"}', raw=True)

        Args:
            url: Target URL.
            data: Request payload. It maybe a dict or string with raw content.
            raw: If ``True`` then do not convert ``data`` to JSON string and use
                 it as is.

        Returns:
            flask_json.JsonTestResponse
         N/A content N/A raw data N/A N/A json dumps data N/A headers N/A N/A Content-Type application/json N/A Content-Length N/A len content N/A N/A N/A N/A self client post url headers headers data content N/A N/A