Lines Matching refs:MagicMock
18 'MagicMock',
906 klass = MagicMock
1292 Klass = MagicMock
1506 `MagicMock`. If `patch` is used as a decorator and `new` is
1517 The `spec` and `spec_set` keyword arguments are passed to the `MagicMock`
1524 that will be called to create the `new` object. By default `MagicMock` is
1878 """A version of `MagicMock` that isn't callable."""
1890 class MagicMock(MagicMixin, Mock):
1892 MagicMock is a subclass of Mock with default implementations
1893 of most of the magic methods. You can use MagicMock without having to
1899 Attributes and the return value of a `MagicMock` will also be `MagicMocks`.
2170 Klass = MagicMock
2204 # MagicMock already does the useful magic methods for us
2237 new = MagicMock(parent=parent, name=entry, _new_name=entry,
2325 default) then a `MagicMock` will be created for you, with the API limited
2341 mock = MagicMock(name='open', spec=open)
2343 handle = MagicMock(spec=file_spec)
2362 return MagicMock(**kwargs)