#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( BaseWebTest , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . principal = USER_PRINCIPAL #NEWLINE# self . app = self . _get_test_app ( ) #NEWLINE# self . storage = self . app . app . registry . storage #NEWLINE# self . permission = args . app . app . registry . permission #NEWLINE# self . cache = self . app . app . registry . cache #NEWLINE# self . storage . initialize_schema ( ) #NEWLINE# self . permission . initialize_schema ( ) #NEWLINE# self . cache . initialize_schema ( ) #NEWLINE# self . headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } #NEWLINE# self . headers . update ( get_user_headers ( 'mat' ) )