예제 #1
0
 def test_02__relative_workdir(self):
     workdir, name, version = ("../w", "foo", "0.0.1")
     abs_workdir = os.path.abspath(workdir)
     self.assertEquals(
         abs_workdir + "/foo-0.0.1",
         O.set_workdir(workdir, name, version)
     )
예제 #2
0
    def test_00__no_changes(self):
        name, version = ("foo", "0.0.1")
        workdir = "/tmp/w/%s-%s" % (name, version)

        self.assertEquals(
            workdir,
            O.set_workdir(workdir, name, version)
        )
예제 #3
0
 def test_01__absolute_workdir(self):
     workdir, name, version = ("/tmp/w", "foo", "0.0.1")
     self.assertEquals(
         "/tmp/w/foo-0.0.1",
         O.set_workdir(workdir, name, version)
     )