Exemplo n.º 1
0
 def tearDown(self):
     pass
     if self.basePath:
         Shell.nukeDirectory(self.basePath).catch(tests.TestBase.raiser)
     if self.subenvBasePath:
         Shell.nukeDirectory(self.subenvBasePath).catch(
             tests.TestBase.raiser)
     if self.projectsBasePath:
         Shell.nukeDirectory(self.projectsBasePath).catch(
             tests.TestBase.raiser)
Exemplo n.º 2
0
 def delete(self, name):
     envPath = os.path.normpath(os.path.join(self.envsPath, name))
     if not os.path.isdir(envPath):
         return Fail(InvalidOptionError("Environment '%s' does not exist."))
     return Shell.nukeDirectory(envPath)