Exemplo n.º 1
0
    def test_post_register(self):

        with ctx.delete() as to_delete:
            t, s = cmds.sphere()
            to_delete.append(s)

        self.assertRaises(RuntimeError, cmds.nodeType, s)
        self.assertTrue(cmds.nodeType(t), 'transform')
Exemplo n.º 2
0
    def test_post_register(self):

        with ctx.delete() as to_delete:
            t, s = cmds.sphere()
            to_delete.append(s)

        self.assertRaises(RuntimeError, cmds.nodeType, s)
        self.assertTrue(cmds.nodeType(t), 'transform')
Exemplo n.º 3
0
    def test_pre_register(self):

        t, s = cmds.sphere()

        with ctx.delete(s):
            pass

        self.assertRaises(RuntimeError, cmds.nodeType, s)
        self.assertTrue(cmds.nodeType(t), 'transform')
Exemplo n.º 4
0
    def test_pre_register(self):

        t, s = cmds.sphere()

        with ctx.delete(s):
            pass

        self.assertRaises(RuntimeError, cmds.nodeType, s)
        self.assertTrue(cmds.nodeType(t), 'transform')