Pylint and mocks in tests