webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, group_name) |
def | AddMethod (self, mock_method) |
def | MethodCalled (self, mock_method) |
def | IsSatisfied (self) |
Public Member Functions inherited from mox.MethodGroup | |
def | __init__ (self, group_name) |
def | group_name (self) |
def | __str__ (self) |
def | AddMethod (self, mock_method) |
def | MethodCalled (self, mock_method) |
def | IsSatisfied (self) |
MultipleTimesGroup holds methods that may be called any number of times. Note: Each method must be called at least once. This is helpful, if you don't know or care how many times a method is called.
def mox.MultipleTimesGroup.__init__ | ( | self, | |
group_name | |||
) |
def mox.MultipleTimesGroup.AddMethod | ( | self, | |
mock_method | |||
) |
Add a method to this group. Args: mock_method: A mock method to be added to this group.
def mox.MultipleTimesGroup.IsSatisfied | ( | self | ) |
Return True if all methods in this group are called at least once.
def mox.MultipleTimesGroup.MethodCalled | ( | self, | |
mock_method | |||
) |
Remove a method call from the group. If the method is not in the set, an UnexpectedMethodCallError will be raised. Args: mock_method: a mock method that should be equal to a method in the group. Returns: The mock method from the group Raises: UnexpectedMethodCallError if the mock_method was not in the group.