Public Member Functions | |
def | __init__ (self, group_name) |
def | __init__ (self, group_name) |
def | AddMethod (self, mock_method) |
def | AddMethod (self, mock_method) |
def | IsSatisfied (self) |
def | IsSatisfied (self) |
def | MethodCalled (self, mock_method) |
def | MethodCalled (self, mock_method) |
![]() | |
def | __str__ (self) |
def | __str__ (self) |
def | group_name (self) |
def | group_name (self) |
Private Attributes | |
_methods | |
UnorderedGroup holds a set of method calls that may occur in any order. This construct is helpful for non-deterministic events, such as iterating over the keys of a dict.
Definition at line 1203 of file bloaty/third_party/protobuf/python/mox.py.
def mox.UnorderedGroup.__init__ | ( | self, | |
group_name | |||
) |
Reimplemented from mox.MethodGroup.
Definition at line 1210 of file bloaty/third_party/protobuf/python/mox.py.
def mox.UnorderedGroup.__init__ | ( | self, | |
group_name | |||
) |
Reimplemented from mox.MethodGroup.
Definition at line 1210 of file protobuf/python/mox.py.
def mox.UnorderedGroup.AddMethod | ( | self, | |
mock_method | |||
) |
Add a method to this group. Args: mock_method: A mock method to be added to this group.
Reimplemented from mox.MethodGroup.
Definition at line 1214 of file bloaty/third_party/protobuf/python/mox.py.
def mox.UnorderedGroup.AddMethod | ( | self, | |
mock_method | |||
) |
Add a method to this group. Args: mock_method: A mock method to be added to this group.
Reimplemented from mox.MethodGroup.
Definition at line 1214 of file protobuf/python/mox.py.
def mox.UnorderedGroup.IsSatisfied | ( | self | ) |
Return True if there are not any methods in this group.
Reimplemented from mox.MethodGroup.
Definition at line 1257 of file protobuf/python/mox.py.
def mox.UnorderedGroup.IsSatisfied | ( | self | ) |
Return True if there are not any methods in this group.
Reimplemented from mox.MethodGroup.
Definition at line 1257 of file bloaty/third_party/protobuf/python/mox.py.
def mox.UnorderedGroup.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.
Reimplemented from mox.MethodGroup.
Definition at line 1223 of file bloaty/third_party/protobuf/python/mox.py.
def mox.UnorderedGroup.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.
Reimplemented from mox.MethodGroup.
Definition at line 1223 of file protobuf/python/mox.py.
|
private |
Definition at line 1212 of file bloaty/third_party/protobuf/python/mox.py.