@mock.patch('certbot._internal.cert_manager.lineage_for_certname')
@mock.patch('certbot._internal.main.display_ops.choose_values')
@mock.patch('certbot._internal.main.plug_sel.pick_installer')
@mock.patch('certbot._internal.main.plug_sel.record_chosen_plugins')
@test_util.patch_get_utility()
def test_enhancement_enable(self, _, _rec, mock_inst, mock_choose, mock_lineage):
    mock_inst.return_value = self.mockinstaller
    mock_choose.return_value = ['example.com', 'another.tld']
    mock_lineage.return_value = mock.MagicMock(chain_path='/tmp/nonexistent')
    self._call(['enhance', '--auto-hsts'])
    self.assertTrue(self.mockinstaller.enable_autohsts.called)
    self.assertEqual(self.mockinstaller.enable_autohsts.call_args[0][1], ['example.com', 'another.tld'])
@mock.patch('certbot._internal.cert_manager.lineage_for_certname')
@mock.patch('certbot._internal.main.display_ops.choose_values')
@mock.patch('certbot._internal.main.plug_sel.pick_installer')
@mock.patch('certbot._internal.main.plug_sel.record_chosen_plugins')
@test_util.patch_get_utility()
def test_enhancement_enable(self, _, _rec, mock_inst, mock_choose, mock_lineage):
    mock_inst.return_value = self.mockinstaller
    mock_choose.return_value = ['example.com', 'another.tld']
    mock_lineage.return_value = mock.MagicMock(chain_path='/tmp/nonexistent')
    self._call(['enhance', '--auto-hsts'])
    self.assertTrue(self.mockinstaller.enable_autohsts.called)
    self.assertEqual(self.mockinstaller.enable_autohsts.call_args[0][1], ['example.com', 'another.tld'])