def __init__(self, install_path="./", method=""): self.install_path = install_path self.method = method self._main_package = base.softwareFactory( self.main_package, self.upstream_package, install_path, method) self._deps = base.SoftwareCollection( self.dependencies, install_path, method)
def test_apt_get(self): software = base.softwareFactory("apt-get:///path/to/deb") self.assertTrue(isinstance(software, base.AptGetSoftware))
def test_git_python_software(self): software = base.softwareFactory("git+python://host:team/project.git") self.assertTrue(isinstance(software, base.GitSoftware)) self.assertTrue(isinstance(software, base.PythonSoftware)) self.assertTrue(isinstance(software, base.GitPythonSoftware))
def test_python(self): software = base.softwareFactory("python:///path/to/source/dir") self.assertTrue(isinstance(software, base.PythonSoftware))
def test_read_only_git_software(self): software = base.softwareFactory("ro+git://host:team/project.git") self.assertTrue(isinstance(software, base.BaseGitSoftware)) self.assertTrue(isinstance(software, base.ReadOnlyGitSoftware))