@mock.patch('certbot.display.ops.choose_names')
def test_display_ops(self, mock_choose_names):
    mock_config = mock.Mock(domains=None, certname=None)
    mock_choose_names.return_value = 'domainname'
    self.assertEqual(main._find_domains_or_certname(mock_config, None), ('domainname', None))
@mock.patch('certbot.display.ops.choose_names')
def test_display_ops(self, mock_choose_names):
    mock_config = mock.Mock(domains=None, certname=None)
    mock_choose_names.return_value = 'domainname'
    self.assertEqual(main._find_domains_or_certname(mock_config, None), ('domainname', None))