def test_create_disabled(self, empty_path): """ create DISABLED SoftChroot """ cf = SoftChroot(empty_path) self.assertIsInstance(cf, SoftChroot) self.assertFalse(cf.isEnabled()) self.assertIsNone(cf.getRoot())
def test_create(self): """ create headphones.SoftChroot """ cf = SoftChroot('/tmp/') self.assertIsInstance(cf, SoftChroot) self.assertTrue(cf.isEnabled()) self.assertEqual(cf.getRoot(), '/tmp/')
def test_init_disabled(self, rt): """ softchroot: test_init_disabled """ sc = SoftChroot(rt) enabled = sc.isEnabled() path = sc.getRoot() self.assertIsInstance(sc, SoftChroot) self.assertFalse(enabled) self.assertIsNone(path)
def test_init_enabled(self, rt, exp_chroot): """ softchroot: test_init_enabled """ sc = SoftChroot(rt) enabled = sc.isEnabled() path = sc.getRoot() self.assertIsInstance(sc, SoftChroot) self.assertTrue(enabled) self.assertEqual(exp_chroot, path)