def test_conf_reader_create_none(self):
     reader = ConfReaderFactory.create_conf_reader()
     assert_true(isinstance(reader, DoNothingConfReader))
Beispiel #2
0
 def __init__(self, conf_filename=None):
     self.conf_reader = ConfReaderFactory.create_conf_reader(conf_filename)
 def test_conf_reader_create_json(self):
     filename = os.path.join(self.current_dir, "conf.json")
     reader = ConfReaderFactory.create_conf_reader(conf_filename=filename)
     assert_true(isinstance(reader, JSONConfReader))