#NEWLINE# def _GetMockSession( self , sid = None ) : #NEWLINE# #INDENT# 'Create and return a mock session object.' #NEWLINE# if ( sid is None ) : #NEWLINE# #INDENT# sid = self . sid #NEWLINE# #UNINDENT# session = self . mox . CreateMockAnything ( ) #NEWLINE# key = self . mox . CreateMockAnything ( ) #NEWLINE# name = self . mox . CreateMockAnything ( ) #NEWLINE# session . key ( ) . AndReturn ( key ) #NEWLINE# key . name ( ) . AndReturn ( sid ) #NEWLINE# return session