def test_certonly_abspath(self):
    cert = 'cert'
    key = 'key'
    chain = 'chain'
    fullchain = 'fullchain'
    with mock.patch('certbot._internal.main.certonly') as mock_certonly:
        self._call(['certonly', '--cert-path', cert, '--key-path', 'key', '--chain-path', 'chain', '--fullchain-path', 'fullchain'])
    (config, unused_plugins) = mock_certonly.call_args[0]
    self.assertEqual(config.cert_path, os.path.abspath(cert))
    self.assertEqual(config.key_path, os.path.abspath(key))
    self.assertEqual(config.chain_path, os.path.abspath(chain))
    self.assertEqual(config.fullchain_path, os.path.abspath(fullchain))
def test_certonly_abspath(self):
    cert = 'cert'
    key = 'key'
    chain = 'chain'
    fullchain = 'fullchain'
    with mock.patch('certbot._internal.main.certonly') as mock_certonly:
        self._call(['certonly', '--cert-path', cert, '--key-path', 'key', '--chain-path', 'chain', '--fullchain-path', 'fullchain'])
    (config, unused_plugins) = mock_certonly.call_args[0]
    self.assertEqual(config.cert_path, os.path.abspath(cert))
    self.assertEqual(config.key_path, os.path.abspath(key))
    self.assertEqual(config.chain_path, os.path.abspath(chain))
    self.assertEqual(config.fullchain_path, os.path.abspath(fullchain))