(obj, strict=True)
| 85 | return verification.Times(times) |
| 86 | |
| 87 | def _get_mock(obj, strict=True): |
| 88 | theMock = mock_registry.mock_for(obj) |
| 89 | if theMock is None: |
| 90 | theMock = Mock(obj, strict=strict, spec=obj) |
| 91 | mock_registry.register(obj, theMock) |
| 92 | return theMock |
| 93 | |
| 94 | def _get_mock_or_raise(obj): |
| 95 | theMock = mock_registry.mock_for(obj) |