Пример #1
0
    def setUp(self):
        self.tempdir = tempfile.mkdtemp()
        configurator = mock.MagicMock()
        configurator.config.config_dir = os.path.join(self.tempdir, "config")
        configurator.config.work_dir = os.path.join(self.tempdir, "work")

        from certbot.plugins.common import TLSSNI01
        self.sni = TLSSNI01(configurator=configurator)
Пример #2
0
 def setUp(self):
     from certbot.plugins.common import TLSSNI01
     self.sni = TLSSNI01(configurator=mock.MagicMock())