Lines Matching refs:spec_set
478 self, spec=None, wraps=None, name=None, spec_set=None, argument
491 if spec_set is not None:
492 spec = spec_set
493 spec_set = True
495 self._mock_add_spec(spec, spec_set)
513 spec, wraps, name, spec_set, parent,
531 def mock_add_spec(self, spec, spec_set=False): argument
537 self._mock_add_spec(spec, spec_set)
540 def _mock_add_spec(self, spec, spec_set): argument
553 __dict__['_spec_set'] = spec_set
680 result.spec, result.spec_set, result.instance,
934 wraps=None, name=None, spec_set=None, parent=None, argument
939 spec, wraps, name, spec_set, parent,
1118 spec_set, autospec, new_callable, kwargs argument
1137 self.spec_set = spec_set
1146 self.create, self.spec_set,
1249 new, spec, spec_set = self.new, self.spec, self.spec_set
1257 if spec_set is False:
1258 spec_set = None
1265 spec_set not in (True, None)):
1275 if spec_set is True:
1276 spec_set = original
1279 if spec_set is True:
1280 spec_set = spec
1282 elif spec_set is True:
1283 spec_set = original
1285 if spec is not None or spec_set is not None:
1296 elif spec is not None or spec_set is not None:
1298 if spec_set is not None:
1299 this_spec = spec_set
1309 if spec_set is not None:
1310 _kwargs['spec_set'] = spec_set
1324 if spec_set is not None:
1325 this_spec = spec_set
1344 spec_set = bool(spec_set)
1348 new = create_autospec(autospec, spec_set=spec_set,
1420 create=False, spec_set=None, autospec=None, argument
1442 spec_set, autospec, new_callable, kwargs
1446 def _patch_multiple(target, spec=None, create=False, spec_set=None, argument
1481 getter, attribute, new, spec, create, spec_set,
1487 getter, attribute, new, spec, create, spec_set,
1497 spec_set=None, autospec=None, new_callable=None, **kwargs argument
1567 spec_set, autospec, new_callable, kwargs
1879 def mock_add_spec(self, spec, spec_set=False): argument
1885 self._mock_add_spec(spec, spec_set)
1901 def mock_add_spec(self, spec, spec_set=False): argument
1907 self._mock_add_spec(spec, spec_set)
2135 def create_autospec(spec, spec_set=False, instance=False, _parent=None, argument
2162 if spec_set:
2199 mock.return_value = create_autospec(spec, spec_set, instance=True,
2226 if spec_set:
2230 new = _SpecState(original, spec_set, mock, entry, instance)
2286 def __init__(self, spec, spec_set=False, parent=None, argument
2290 self.spec_set = spec_set