#NEWLINE# def MockModelStaticBase( self , model_name , method_name , * args ) : #NEWLINE# #INDENT# 'Mock a model static method, return a mock setup.\n\n    Args:\n      model_name: str, name of model\n      method_name: str, name of static method on model to call\n      *args: optional, list of arguments to supply to mock setup\n    Returns:\n      a mock setup ready for completion with AndReturn, AndRaise, etc.\n    ' #NEWLINE# test_class_models = self . GetTestClassModule ( ) . models #NEWLINE# model_class = getattr ( test_class_models , model_name ) #NEWLINE# if ( not ( ( '%s:%s' % ( model_name , method_name ) ) in self . _set_mock ) ) : #NEWLINE# #INDENT# mock_model = self . mox . CreateMock ( getattr ( model_class , method_name ) ) #NEWLINE# self . stubs . Set ( model_class , method_name , mock_model ) #NEWLINE# self . _set_mock [ ( '%s:%s' % ( model_name , method_name ) ) ] = mock_model #NEWLINE# #UNINDENT# model = self . mox . CreateMockAnything ( ) #NEWLINE# return getattr ( model_class , method_name ) ( * args )