Example #1
0
 def test_test_set(self):
     """
     Tests the test config
     :return: Tests results
     """
     data = ConfigManager.get_test_sets()
     self.assertEqual(True, len(data) > 0, "test: Wrong size of the List")
Example #2
0
 def test_test_set(self):
     """
     Tests the test config
     :return: Tests results
     """
     data = ConfigManager.get_test_sets()
     self.assertEqual(len(data), 2, "test: Wrong size of the List")
Example #3
0
 def __load_configuration(cls):
     logging.debug("Load configuration")
     cls._routers = ConfigManager.get_routers_list()
     for i, r in enumerate(cls._routers):
         if len(ConfigManager.get_web_interface_list()) >= i:
             if 'node_name' in ConfigManager.get_web_interface_list()[i]:
                 r.node_name = ConfigManager.get_web_interface_list()[i]['node_name']
     cls._power_strips = ConfigManager.get_power_strip_list()
     cls._test_sets = ConfigManager.get_test_sets()
Example #4
0
 def __load_configuration(cls):
     logging.debug("Load configuration")
     cls._routers = ConfigManager.get_routers_list()
     cls._power_strips = ConfigManager.get_power_strip_list()
     cls._test_sets = ConfigManager.get_test_sets()