def test_can_create_pipinstaller_instance(self): """fab.tests.environment.python.pip_installer_test Can create PipInstaller instance""" self.mox.ReplayAll() pip_installer = PipInstaller.create_with(self.deployment_host_config, self.mock_host_controller) self.assertIsInstance(pip_installer, PipInstaller) self.assertIsInstance(pip_installer.feedback, ExecutionFeedback)
def create_with(deployment_host_config, host_controller): return SystemPythonPackageInstaller(deployment_host_config.host_paths, RSRCodebaseConfig(deployment_host_config.repository_branch), SystemPackageInstallationPaths(deployment_host_config.host_paths), PipInstaller.create_with(deployment_host_config, host_controller), FileSystem(host_controller), AkvoPermissions(host_controller), Internet(host_controller), host_controller)
def test_can_create_pipinstaller_instance(self): """fab.tests.environment.python.pip_installer_test Can create PipInstaller instance""" self.mox.ReplayAll() pip_installer = PipInstaller.create_with(self.deployment_host_config, self.mock_host_controller) self.assertIsInstance(pip_installer, PipInstaller) self.assertIsInstance(pip_installer.feedback, ExecutionFeedback)