示例#1
0
    def setUp(self):
        super(InstallerTest, self).setUp()
        filesystem.mkdir(self.config.config_dir)
        from certbot.plugins.common import Installer

        self.installer = Installer(config=self.config, name="Installer")
        self.reverter = self.installer.reverter
示例#2
0
    def setUp(self):
        from certbot.plugins.common import Installer

        with mock.patch("certbot.plugins.common.reverter.Reverter"):
            self.installer = Installer(config=mock.MagicMock(),
                                       name="Installer")
        self.reverter = self.installer.reverter
示例#3
0
    def setUp(self):
        super(InstallerTest, self).setUp()
        os.mkdir(self.config.config_dir)
        from certbot.plugins.common import Installer

        with mock.patch("certbot.plugins.common.reverter.Reverter"):
            self.installer = Installer(config=self.config, name="Installer")
        self.reverter = self.installer.reverter