#NEWLINE# def test_construct_CheckSessionRequest_2( self ) : #NEWLINE# #INDENT# self . client . grant [ 'foo' ] = Grant ( ) #NEWLINE# self . client . grant [ 'foo' ] . grant_expiration_time = ( time . time ( ) + 60 ) #NEWLINE# self . client . grant [ 'foo' ] . code = 'access_code' #NEWLINE# resp = AccessTokenResponse ( id_token = 'id_id_id_id' , access_token = 'access' , scope = [ 'openid' ] ) #NEWLINE# self . client . grant [ 'foo' ] . tokens . append ( Token ( csr ) ) #NEWLINE# csr = self . client . construct_CheckSessionRequest ( state = 'foo' , scope = [ 'openid' ] ) #NEWLINE# assert ( csr [ 'id_token' ] == 'id_id_id_id' )