File: dns_standalone_test.py

package info (click to toggle)
python-certbot-dns-standalone 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: python: 207; makefile: 14
file content (32 lines) | stat: -rw-r--r-- 813 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Tests for certbot_dns_standalone.dns_standalone."""

import os
import unittest
from unittest import mock

from certbot import errors
from certbot.plugins import dns_test_common
from certbot.plugins.dns_test_common import DOMAIN
from certbot.tests import util as test_util


class AuthenticatorTest(test_util.TempDirTestCase, dns_test_common.BaseAuthenticatorTest):

    def setUp(self):
        from certbot_dns_standalone.dns_standalone import Authenticator

        super(AuthenticatorTest, self).setUp()

        self.config = mock.MagicMock(standalone_address='127.0.0.1')

        self.auth = Authenticator(self.config, "standalone")

    def test_perform(self):
        return # TODO

    def test_perform(self):
        return # TODO


if __name__ == "__main__":
    unittest.main()  # pragma: no cover