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)
Exemple #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)
Exemple #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)
Exemple #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)
 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)
Exemple #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)