Home | History | Annotate | Download | only in python

Lines Matching defs:Or

11 # Unless required by applicable law or agreed to in writing, software
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30 If an unexpected method (or an expected method with unexpected
105 This can occur if a method is called with incorrect parameters, or out of the
115 # expected: MockMethod or UnorderedGroup the method should have
118 expected: MockMethod or UnorderedGroup
211 This will replace a class or module with a MockObject, and everything else
282 state (record or replay). The call will be recorded or replayed
290 A new MockMethod aware of MockAnything's state (record or replay).
303 A new MockMethod aware of MockAnything's state (record or replay).
395 MockObject's state (record or replay). The call will be recorded
396 or replayed by the MockMethod's __call__.
403 Either a class variable or a new MockMethod that is aware of the state
404 of the mock (record or replay).
514 and returning a value, or throwing an exception (as specified). When this
524 # call_queue: deque of calls, verify this call against the head, or add
529 call_queue: list or deque
591 This can be an ordered method, or part of an unordered set.
617 [repr(p) for p in self._params or []] +
618 ['%s=%r' % x for x in sorted((self._named_params or {}).items())])
646 """Returns a possible group from the end of the call queue or None if no
654 # Determine if the tail of the queue is a group, or just a regular ordered
666 group_class. Adds the current method to this group or creates a new one.
693 standard method call, or a group with a different name, spliced between
742 side_effects: A callable which modifies the parameters or other relevant
764 A Comparator may replace one or more parameters, for example:
768 or
791 """This class wraps a basic Python type or class. It is used to verify
792 that a parameter is of the given type or class.
802 class_name: basic python type or a class
859 # This is probably because either float_value or rhs is not a number.
940 """Checks whether an item (or key) is in a list (or dict) parameter.
950 # key is any thing that could be in a list or a key in a dict
968 return '<sequence or map containing \'%s\'>' % self._key
1047 """Evaluates one or more Comparators on RHS and returns an AND of the results.
1054 *args: One or more Comparator
1079 class Or(Comparator):
1080 """Evaluates one or more Comparators on RHS and returns an OR of the results.
1087 *args: One or more Mox comparators
1109 return '<OR %s>' % str(self._comparators)
1117 parameter. The callable should return either True or False.
1268 This is helpful, if you don't know or care how many times a method is called.
1337 As the mox unit testing class is being constructed (MoxTestBase or a
1365 cls: MoxTestBase or subclass; the class whose test method we are altering.