Esempio n. 1
0
 def test_get_config_by_name(self):
     config_type = ConfigurationFactory.get_config_by_name("yaml")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name("json")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name("xml")
     self.assertIsNotNone(config_type)
Esempio n. 2
0
 def test_get_config_by_name(self):
     config_type = ConfigurationFactory.get_config_by_name("yaml")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name("json")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name("xml")
     self.assertIsNotNone(config_type)
Esempio n. 3
0
 def test_get_config_by_name(self):
     client_config = ClientConfiguration()
     config_type = ConfigurationFactory.get_config_by_name(client_config, "yaml")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name(client_config, "json")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name(client_config, "xml")
     self.assertIsNotNone(config_type)
Esempio n. 4
0
 def test_get_config_by_name(self):
     client_config = ClientConfiguration()
     config_type = ConfigurationFactory.get_config_by_name(
         client_config, "yaml")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name(
         client_config, "json")
     self.assertIsNotNone(config_type)
     config_type = ConfigurationFactory.get_config_by_name(
         client_config, "xml")
     self.assertIsNotNone(config_type)
Esempio n. 5
0
 def test_get_config_by_name_wrong_extension(self):
     with self.assertRaises(Exception):
         ConfigurationFactory.get_config_by_name("other")
     with self.assertRaises(Exception):
         ConfigurationFactory.get_config_by_name("")
     with self.assertRaises(Exception):
         ConfigurationFactory.get_config_by_name(None)
Esempio n. 6
0
 def test_get_config_by_name_wrong_extension(self):
     with self.assertRaises(Exception):
         ConfigurationFactory.get_config_by_name("other")
     with self.assertRaises(Exception):
         ConfigurationFactory.get_config_by_name("")
     with self.assertRaises(Exception):
         ConfigurationFactory.get_config_by_name(None)