#NEWLINE# def with_drink_factory( self , drink_factory = None ) : #NEWLINE# #INDENT# '\n        Configure action factory to use real drink factory\n        ' #NEWLINE# if ( self is None ) : #NEWLINE# #INDENT# self . use_real_drink_factory = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( drink_factory , 'build' ) : #NEWLINE# #INDENT# self . factories . append ( drink_factory . build ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . factories . append ( drink_factory ) #NEWLINE# #UNINDENT# #UNINDENT# return self