#NEWLINE# def setup( self ) : #NEWLINE# #INDENT# setup ( self ) #NEWLINE# self . username = 'username' #NEWLINE# self . password = 'password' #NEWLINE# self . client = self . app . test_client ( ) #NEWLINE# self . use_json = dict ( accept = 'application/json; charset=UTF-8' ) #NEWLINE# auth = b64encode ( '{}:{}' . format ( self . username , self . password ) ) #NEWLINE# self . use_auth = dict ( authorization = 'Basic {}' . format ( auth ) ) #NEWLINE# self . app . redis . set ( 'cheddar.user.{}' . format ( self . username ) , self . password )