def testRootNested(self): with utils.bootstrap_scenario(dir='~') as spec: with utils.tempdir(dir=spec[0]) as nested_a: with utils.workdir(dir=nested_a) as nested_b: utils.refresh_bootstrapper() self.assertEqual(spec[0], mandrel.bootstrap.ROOT_PATH) self.assertEqual(spec[1], mandrel.bootstrap.BOOTSTRAP_FILE)
def testRootNested(self): with utils.bootstrap_scenario(dir='~') as spec: with utils.tempdir(dir=spec[0]) as nested_a: with utils.workdir(dir=nested_a) as nested_b: utils.refresh_bootstrapper() self.assertEqual(spec[0], mandrel.bootstrap.ROOT_PATH) self.assertEqual(spec[1], mandrel.bootstrap.BOOTSTRAP_FILE)
def testNoFile(self): with utils.workdir(dir='~') as path: self.assertRaises(mandrel.exception.MissingBootstrapException, utils.refresh_bootstrapper)
def testNoFile(self): with utils.workdir(dir='~') as path: self.assertRaises(mandrel.exception.MissingBootstrapException, utils.refresh_bootstrapper)