def setUpClass(cls): cls.name = "Scenes" cls.mod_name1 = "downscale" cls.mod_name2 = "snapshot" cls.module1 = Helper.start_module(cls.mod_name1) cls.module2 = Helper.start_module(cls.mod_name2) print "[" + cls.name + "] Starting Tests." Helper.show_running_modules(cls.name)
def test_module_Remove(self): tmp_module = Helper.red.vision_module_start(self.mod_name) self.assertEqual(tmp_module.result, TVE.TV_OK) # def vision_libs_loaded_count(self): # shows module loaded count! should be 2 here tmp = Helper.red.vision_libs_loaded_count() self.assertEqual(tmp.result, TVE.TV_OK) self.assertEqual(tmp.count, 2) # def vision_module_remove(self, id): # remove the new module Helper.show_running_modules(self.name) self.assertEqual(Helper.red.vision_module_remove(tmp_module.id), TVE.TV_OK) import time time.sleep(5) tmp = Helper.red.vision_libs_loaded_count() self.assertEqual(tmp.result, TVE.TV_OK) self.assertEqual(tmp.count, 2) self.assertEqual(tmp.count, 1) Helper.show_running_modules(self.name)
def setUpClass(cls): cls.name = "stream" cls.module = Helper.start_module(cls.name) print "[" + cls.name + "] Starting Tests." Helper.show_running_modules(cls.name)
def tearDownClass(cls): Helper.kill_all_modules() Helper.show_running_modules(cls.name) print "[" + cls.name + "] Tests finished."
def setUpClass(cls): cls.name = "snapshot" cls.module = Helper.start_module(cls.name) print "[" + cls.name + "] Starting Tests." Helper.show_running_modules(cls.name)
def setUpClass(cls): cls.name = "Module" cls.mod_name = "motiondetect" cls.module = Helper.start_module(cls.mod_name) print "[" + cls.name + "] Starting Tests." Helper.show_running_modules(cls.name)
def setUpClass(cls): cls.name = "NAMEHERE" # Insert Name <--------------------------------------------------------------------------- cls.module = Helper.start_module(cls.name) print "[" + cls.name + "] Starting Tests." Helper.show_running_modules(cls.name)