I am using Mock 1.0.1 Python. In the path function definition there are two optional arguments names spec and spec_set (also auto_spec) patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) I have read through the documentation, but find no explanation of them. Maybe they are terms of testing? Continue reading...