 format = (message, args...) ->
   message.replace /{(\d)+}/g, (match, i) ->
     if typeof args[i] isnt 'undefined' then args[i] else match
-
 
 
 #

    mock_method.restore_original_method() for mock_method in @_list



#
# common functions
#

        fail(messages.MockUsage) unless is_function(args[1])
      else
        fail(messages.MockUsage)

  parse_args: (args) ->
    switch args.length
      when 1
