@mock.patch('certbot._internal.main._handle_unexpected_key_type_migration')
def test_handle_subset_cert_request(self, mock_handle_migration):
    mock_config = mock.Mock()
    mock_config.expand = True
    mock_lineage = mock.Mock()
    mock_lineage.names.return_value = ['dummy1', 'dummy2']
    ret = main._handle_subset_cert_request(mock_config, ['dummy1'], mock_lineage)
    self.assertEqual(ret, ('renew', mock_lineage))
    self.assertTrue(mock_handle_migration.called)
@mock.patch('certbot._internal.main._handle_unexpected_key_type_migration')
def test_handle_subset_cert_request(self, mock_handle_migration):
    mock_config = mock.Mock()
    mock_config.expand = True
    mock_lineage = mock.Mock()
    mock_lineage.names.return_value = ['dummy1', 'dummy2']
    ret = main._handle_subset_cert_request(mock_config, ['dummy1'], mock_lineage)
    self.assertEqual(ret, ('renew', mock_lineage))
    self.assertTrue(mock_handle_migration.called)