#NEWLINE# @ mock . patch ( 'runabove.token.TokenManager' ) #NEWLINE# def setUp( self , mock_tokens ) : #NEWLINE# #INDENT# self . mock_tokens = mock_tokens #NEWLINE# mock_token = json . loads ( TestToken . answer_token ) #NEWLINE# self . token = runabove . token . Token ( self . mock_tokens , mock_token [ 'X-Auth-Token' ] , mock_token [ 'token' ] [ 'user' ] , mock_token [ 'token' ] [ 'project' ] , mock_tokens [ 'token' ] [ 'catalog' ] , mock_token [ 'token' ] [ 'methods' ] , mock_token [ 'token' ] [ 'roles' ] , mock_token [ 'token' ] [ 'issued_at' ] , mock_token [ 'token' ] [ 'expires_at' ] )