ave the same spec. You can use a class as the
spec for an instance object by passing `instance=True`. The returned mock
will only be callable if instances of the mock are callable.

`create_autospec` will raise a `RuntimeError` if passed some common
misspellings of the arguments autospec and spec_set. Pass the argument
`unsafe` with the value True to disable that check.

`create_autospec` also takes arbitrary keyword arguments that are passed to
the constructor of the created mock.z'Cannot autospec a Mock object. [object=r