@mock.patch('certbot.display.ops.choose_names')
def test_no_results(self, mock_choose_names):
    mock_config = mock.Mock(domains=None, certname=None)
    mock_choose_names.return_value = []
    self.assertRaises(errors.Error, main._find_domains_or_certname, mock_config, None)
@mock.patch('certbot.display.ops.choose_names')
def test_no_results(self, mock_choose_names):
    mock_config = mock.Mock(domains=None, certname=None)
    mock_choose_names.return_value = []
    self.assertRaises(errors.Error, main._find_domains_or_certname, mock_config, None)