Home | History | Annotate | Download | only in python

Lines Matching defs:__getitem__

459   def __getitem__(self, key):
467 __getitem__ method that has already been called if not in replay mode.
475 getitem = self._class_to_mock.__dict__.get('__getitem__', None)
481 # If we are in replay mode then simply call the mock __getitem__ method.
483 return MockMethod('__getitem__', self._expected_calls_queue,
487 # Otherwise, create a mock method __getitem__.
488 return self._CreateMockMethod('__getitem__')(key)