def test_missing_xml_files(self, mock1, mock2): try: conf = config.get_config() assert len(conf["configurations"].keys()) == 1 for i in range(1, 5): assert conf["configurations"]["test-conf-1"]["name.prop." + str(i)] == "val" + str(i) except IOError as e: self.fail(e)
def test_missing_xml_files(self, mock1, mock2): try: conf = config.get_config() assert len(conf['configurations'].keys()) == 1 for i in range(1, 5): assert (conf['configurations']['test-conf-1']['name.prop.' + str(i)] == 'val' + str(i)) except IOError as e: self.fail(e)
def test_xml_tree(self, mock1): try: conf = config.get_config() files = ["test-conf-1", "test-conf-2"] for f in files: for i in range(1, 5): assert conf["configurations"][f]["name.prop." + str(i)] == "val" + str(i) except IOError as e: self.fail(e)
def test_xml_tree(self, mock1): try: conf = config.get_config() files = ['test-conf-1', 'test-conf-2'] for f in files: for i in range(1, 5): assert (conf['configurations'][f]['name.prop.' + str(i)] == 'val' + str(i)) except IOError as e: self.fail(e)