Home | History | Annotate | Download | only in unittest

Lines Matching refs:new_callable

1100             spec_set, autospec, new_callable, kwargs
1102 if new_callable is not None:
1105 "Cannot use 'new' and 'new_callable' together"
1109 "Cannot use 'autospec' and 'new_callable' together"
1115 self.new_callable = new_callable
1129 self.autospec, self.new_callable, self.kwargs
1226 new_callable = self.new_callable
1269 if new_callable is not None:
1270 Klass = new_callable
1404 new_callable=None, **kwargs
1412 `autospec` and `new_callable` have the same meaning as for `patch`. Like
1422 spec_set, autospec, new_callable, kwargs
1427 autospec=None, new_callable=None, **kwargs):
1442 `autospec` and `new_callable` have the same meaning as for `patch`. These
1462 autospec, new_callable, {}
1468 autospec, new_callable, {}
1477 spec_set=None, autospec=None, new_callable=None, **kwargs
1503 `new_callable` allows you to specify a different class, or callable object,
1539 the `Mock` (or `new_callable`) on construction.
1547 spec_set, autospec, new_callable, kwargs