def test_actions_on_disabled(self, p): """ softchroot: disabled SC, apply and revoke should not change args """ sc = SoftChroot(None) a = sc.apply(p) self.assertEqual(a, p) r = sc.revoke(p) self.assertEqual(r, p)
def test_actions_on_disabled(self, p): """ disabled SoftChroot should not change args on apply and revoke """ sc = SoftChroot(None) a = sc.apply(p) self.assertEqual(a, p) r = sc.revoke(p) self.assertEqual(r, p)
def test_revoke(self, p, e): """ revoke SoftChroot """ sc = SoftChroot('/tmp/') a = sc.revoke(p) self.assertEqual(a, e)
def test_revoke(self, p, e): """ softchroot: revoke """ sc = SoftChroot('/tmp/') a = sc.revoke(p) self.assertEqual(a, e)