MCPcopy Index your code
hub / github.com/python/cpython / _MockIter

Class _MockIter

Lib/unittest/mock.py:421–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419
420# Internal class to identify if we wrapped an iterator object or not.
421class _MockIter(object):
422 def __init__(self, obj):
423 self.obj = iter(obj)
424 def __next__(self):
425 return next(self.obj)
426
427class Base(object):
428 _mock_return_value = DEFAULT

Callers 1

__get_side_effectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…