#NEWLINE# def __init__( self , path_transformer = None , before_record_request = None , custom_patches = ( ) , filter_query_parameters = ( ) , ignore_hosts = ( ) , record_mode = 'once' , ignore_localhost = False , filter_headers = ( ) , before_record_response = None , filter_post_data_parameters = ( ) , match_on = ( 'method' , 'scheme' , 'host' , 'port' , 'path' , 'query' ) , before_record = None , inject_cassette = False , serializer = 'yaml' , cassette_library_dir = None , func_path_generator = None , decode_compressed_response = False ) : #NEWLINE# #INDENT# self . serializer = serializer #NEWLINE# self . match_on = match_on #NEWLINE# self . cassette_library_dir = cassette_library_dir #NEWLINE# self . serializers = { #NEWLINE# #INDENT# 'yaml' : yamlserializer , #NEWLINE# 'json' : jsonserializer , #NEWLINE# #UNINDENT# } #NEWLINE# self . matchers = { #NEWLINE# #INDENT# 'method' : matchers . method , #NEWLINE# 'uri' : matchers . uri , #NEWLINE# 'url' : matchers . uri , #NEWLINE# 'scheme' : matchers . scheme , #NEWLINE# 'host' : matchers . host , #NEWLINE# 'port' : matchers . port , #NEWLINE# 'path' : matchers . path , #NEWLINE# 'query' : matchers . query , #NEWLINE# 'headers' : matchers . headers , #NEWLINE# 'raw_body' : matchers . raw_body , #NEWLINE# 'body' : matchers . body , #NEWLINE# #UNINDENT# } #NEWLINE# self . record_mode = record_mode #NEWLINE# self . filter_headers = filter_headers #NEWLINE# self . filter_query_parameters = filter_query_parameters #NEWLINE# self . filter_post_data_parameters = filter_post_data_parameters #NEWLINE# self . before_record_request = ( before_record_request or before_record ) #NEWLINE# self . before_record_response = before_record_response #NEWLINE# self . ignore_hosts = ignore_hosts #NEWLINE# self . ignore_localhost = ignore_localhost #NEWLINE# self . inject_cassette = before_record_response #NEWLINE# self . path_transformer = path_transformer #NEWLINE# self . func_path_generator = func_path_generator #NEWLINE# self . decode_compressed_response = decode_compressed_response #NEWLINE# self . _custom_patches = tuple ( custom_patches )