parameters: (self, expected_methods)
docstring: Init exception.
  
      Args:
        # expected_methods: A sequence of MockMethod objects that should have been
        #   called.
        expected_methods: [MockMethod]
  
      Raises:
        ValueError: if expected_methods contains no methods.
docstring_summary: Init exception.
docstring_tokens: Init exception .
function: def __init__(self, expected_methods):
      """Init exception.
  
      Args:
        # expected_methods: A sequence of MockMethod objects that should have been
        #   called.
        expected_methods: [MockMethod]
  
      Raises:
        ValueError: if expected_methods contains no methods.
      """
  
      if not expected_methods:
        raise ValueError("There must be at least one expected method")
      Error.__init__(self)
      self._expected_methods = expected_methods
function_tokens: def __init__ ( self , expected_methods ) : if not expected_methods : raise ValueError ( "There must be at least one expected method" ) Error . __init__ ( self ) self . _expected_methods = expected_methods