#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# mock_token = json . loads ( TestToken . answer_token ) #NEWLINE# self . assertEqual ( mock_token [ 'X-Auth-Token' ] , self . token . auth_token ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'user' ] , self . token . user ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'roles' ] , self . token . roles ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'project' ] , self . token . project ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'catalog' ] , self . token . catalog ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'methods' ] , self . token . methods ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'issued_at' ] , self . token . issued_at ) #NEWLINE# self . assertEqual ( mock_token [ 'token' ] [ 'expires_at' ] , self . token . expires_at )