#NEWLINE# def requires( self , requirement ) : #NEWLINE# #INDENT# if ( requirement == 'ClientInfo' ) : #NEWLINE# #INDENT# return ClientInfoMock ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( requirement == 'Inventory' ) : #NEWLINE# #INDENT# return InventoryMock ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( requirement == 'Net' ) : #NEWLINE# #INDENT# return NetMock ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( requirement == 'Channels' ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( requirement == 'Event' ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise AssertionError ( ( 'Unexpected requirement %s' % requirement ) )