Module ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return DictComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad CompareNotIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias For NameStore BoolOpOr AttributeLoad NameLoad attr TupleLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Import alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Raise Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If NameLoad body Break If NameLoad body Assign NameStore Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Str attr NameLoad keyword AttributeLoad NameLoad attr Raise orelse Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore TupleLoad Str Str Str body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A __future__ unicode_literals __future__ print_function N/A logging N/A sys zerotest.fuzzy_matcher FuzzyMatcher N/A LOG N/A N/A logging getLogger __name__ N/A _SERIALIZABLE_CONTENT_TYPE N/A application/json json ResponseMatcher N/A object N/A __init__ N/A N/A self fuzzy_match fuzzy_match_options ignore_headers ignore_all_headers ignore_fields N/A False None None False None N/A N/A 
        :param fuzzy_match: enable fuzzy match fields
        :param ignore_headers: ignored headers when match response
        :param ignore_fields: ignored body fields, only work when response content-type is serializable type
        :return:
         N/A ignore_headers N/A ignore_headers N/A N/A N/A self _fuzzy_match fuzzy_match N/A N/A self _fuzzy_match_options N/A fuzzy_match_options N/A N/A N/A self _ignore_headers N/A set N/A map N/A N/A N/A h N/A N/A N/A h upper ignore_headers N/A N/A self _ignore_all_headers ignore_all_headers N/A N/A self _ignore_fields ignore_fields N/A _compare_status N/A N/A self r1 r2 N/A N/A N/A N/A N/A r1 status N/A r2 status N/A __remove_ignore_headers N/A N/A self headers N/A N/A N/A N/A N/A N/A k upper N/A headers N/A k N/A k headers N/A N/A N/A k upper N/A self _ignore_headers N/A _compare_headers N/A N/A self expect real N/A N/A N/A N/A N/A self _ignore_all_headers N/A N/A expect_headers N/A N/A self __remove_ignore_headers N/A expect headers N/A real_headers N/A N/A self __remove_ignore_headers N/A real headers N/A N/A expect_headers real_headers N/A __delete_ignore_fields N/A N/A self content N/A N/A zerotest.utils.data_helper delete_path_from_dict N/A field_path N/A N/A self _ignore_fields N/A N/A N/A N/A field_path content N/A N/A N/A N/A content pop field_path None N/A N/A N/A delete_path_from_dict content field_path N/A _handle_content_type_json N/A N/A self content N/A N/A N/A json N/A N/A N/A content N/A N/A json loads content N/A N/A N/A N/A N/A N/A LOG error detected json response, but raise a error in decoding N/A N/A N/A N/A self __delete_ignore_fields content N/A content N/A _prepare_body_data N/A N/A self r1 r2 N/A N/A N/A r1_content_type N/A N/A r1 get_header Content-Type N/A r2_content_type N/A N/A r2 get_header Content-Type N/A N/A r1_content_type r2_content_type N/A r1_content N/A r1 body N/A r2_content N/A r2 body N/A content_type None N/A r1_content_type N/A N/A values N/A N/A r1_content_type split ; N/A v values N/A N/A content_type N/A N/A _SERIALIZABLE_CONTENT_TYPE get N/A N/A v lower N/A content_type N/A N/A N/A content_type N/A N/A handler N/A getattr self N/A N/A _handle_content_type_{} format content_type N/A handler N/A N/A r1_content N/A handler r1_content N/A r2_content N/A handler r2_content N/A N/A r1_content r2_content N/A _compare_body N/A N/A self r1 r2 N/A N/A N/A N/A r1_content r2_content N/A N/A self _prepare_body_data r1 r2 N/A is_formatted N/A all N/A N/A isinstance c dict N/A c N/A r1_content r2_content N/A N/A N/A self _fuzzy_match is_formatted N/A N/A fuzzy_matcher N/A FuzzyMatcher N/A self _fuzzy_match_options N/A N/A N/A fuzzy_matcher set_items r1_content r2_content N/A N/A N/A N/A N/A fuzzy_matcher compare N/A N/A N/A AssertionError N/A N/A N/A print N/A N/A expect : {} format r1_content file N/A sys stderr N/A N/A print N/A N/A actual : {} format r2_content file N/A sys stderr N/A N/A N/A N/A r1_content r2_content N/A match_responses N/A N/A self expect real N/A N/A N/A 
        compare requests
        :type expect: zerotest.response.Response
        :type real: zerotest.response.Response
        :return:
         N/A attr N/A status headers body N/A N/A compare_func N/A N/A _compare_{} format attr N/A N/A N/A getattr self compare_func expect real N/A N/A