예제 #1
0
    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())
예제 #2
0
    def test_create(self):
        """ create headphones.SoftChroot """

        cf = SoftChroot('/tmp/')
        self.assertIsInstance(cf, SoftChroot)
        self.assertTrue(cf.isEnabled())
        self.assertEqual(cf.getRoot(), '/tmp/')
예제 #3
0
    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())
예제 #4
0
    def test_create(self):
        """ create headphones.SoftChroot """

        cf = SoftChroot('/tmp/')
        self.assertIsInstance(cf, SoftChroot)
        self.assertTrue(cf.isEnabled())
        self.assertEqual(cf.getRoot(), '/tmp/')
예제 #5
0
    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)
예제 #6
0
    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)