Use module path the function is looked up in (it might be different from the module that defines the function). [Official unittest documentation has a detailed description](https://docs.python.org/3/library/unittest.mock.html#where-to-patch)