#NEWLINE# def _doTest( self , expected_session_type , session_type_value ) : #NEWLINE# #INDENT# args = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( args is not None ) : #NEWLINE# #INDENT# args [ 'session_type' ] = session_type_value #NEWLINE# #UNINDENT# message = Message . fromOpenIDArgs ( args ) #NEWLINE# self . assertTrue ( message . isOpenID1 ( ) ) #NEWLINE# actual_session_type = self . consumer . _getOpenID1SessionType ( message ) #NEWLINE# error_message = ( 'Returned sesion type parameter %r was expected to yield session type %r, but yielded %r' % ( session_type_value , expected_session_type , actual_session_type ) ) #NEWLINE# self . assertEqual ( expected_session_type , actual_session_type , error_message )