def METHOD_NAME(self):
    repository = mock.Mock()
    repository.root_dir = '/root-dir'
    repository.runtime_config = mock.Mock(
        return_value={
            'dnf_args': ['--config', '/root-dir/dnf.conf', '-y'],
            'command_env': ['env']
        }
    )
    self.manager = PackageManagerDnf4(repository)