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
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
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