def test_unsetVariable(self): hou.setVariable("tester", 10) hou.unsetVariable("tester") self.assertTrue(hou.getVariable("tester") is None)
def test_setVariable(self): value = 22 hou.setVariable("awesome", value) self.assertEqual(hou.getVariable("awesome"), 22)
def test_getVariable(self): hipName = hou.getVariable("HIPNAME") self.assertEqual(hipName, os.path.splitext(os.path.basename(hou.hipFile.path()))[0])
def test_getVariable(self): hipName = hou.getVariable("HIPNAME") self.assertEqual( hipName, os.path.splitext(os.path.basename(hou.hipFile.path()))[0])