Lines Matching refs:group
603 # group.
646 """Returns a possible group from the end of the call queue or None if no
650 # Remove this method from the tail of the queue so we can add it to a group.
654 # Determine if the tail of the queue is a group, or just a regular ordered
656 group = None
658 group = self._call_queue[-1]
662 return group
665 """Checks if the last method (a possible group) is an instance of our
666 group_class. Adds the current method to this group or creates a new one.
670 group_name: the name of the group.
671 group_class: the class used to create instance of this new group
673 group = self.GetPossibleGroup()
675 # If this is a group, and it is the correct group, add the method.
676 if isinstance(group, group_class) and group.group_name() == group_name:
677 group.AddMethod(self)
680 # Create a new group and add the method.
687 """Move this method into a group of unordered calls.
689 A group of unordered calls must be defined together, and must be executed
692 different group names. The same group name can be reused if there is a
693 standard method call, or a group with a different name, spliced between
697 group_name: the name of the unordered group.
705 """Move this method into group of calls which may be called multiple times.
707 A group of repeating calls must be defined together, and must be executed in
711 group_name: the name of the unordered group.
1215 """Add a method to this group.
1218 mock_method: A mock method to be added to this group.
1224 """Remove a method call from the group.
1230 mock_method: a mock method that should be equal to a method in the group.
1233 The mock method from the group
1236 UnexpectedMethodCallError if the mock_method was not in the group.
1243 # Remove the called mock_method instead of the method in the group.
1245 # during removal. The method in the group could pass a comparator to
1249 # If this group is not empty, put it back at the head of the queue.
1258 """Return True if there are not any methods in this group."""
1277 """Add a method to this group.
1280 mock_method: A mock method to be added to this group.
1286 """Remove a method call from the group.
1292 mock_method: a mock method that should be equal to a method in the group.
1295 The mock method from the group
1298 UnexpectedMethodCallError if the mock_method was not in the group.
1307 # Always put this group back on top of the queue, because we don't know
1319 """Return True if all methods in this group are called at least once."""