We're mock'ing, it's ok to ignore the PyLint warning.