Ejemplo n.º 1
0
 def short_base_dir_test(self):
     """Make sure cleanup of an unusually short base_dir fails"""
     gitRpm = GitRpmBuild("rpmtest", "1.0.0", "1", ["noarch"])
     gitRpm._base_dir = "/aa/"
     with self.assertRaises(RuntimeError):
         gitRpm.cleanup_tmpdir()
Ejemplo n.º 2
0
 def get_base_dir_test(self):
     """Make sure base_dir is created"""
     gitRpm = GitRpmBuild("rpmtest", "1.0.0", "1", ["noarch"])
     base_dir = gitRpm.get_base_dir()
     self.assertTrue("lorax-git-rpm" in base_dir)
     gitRpm.cleanup_tmpdir()