def test_load_config_with_multiple_entries(self):
		pettingzoo.discovery.write_distributed_config(
			self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
		pettingzoo.discovery.write_distributed_config(
			self.connection, 'mysql', 'reports', self.sample2, '127.0.0.2')
		dmc = pettingzoo.discovery.DistributedMultiDiscovery(self.connection)
		configs = dmc.load_config('mysql', 'reports')
		self.assertTrue(len(configs), 2)
		ips = ['127.0.0.1', '127.0.0.2']
		for config in configs:
			mismatch_keys = [
				key for key in self.sample
					if not key in config or self.sample[key] != config[key]]
			ips.remove(config['header']['metadata']['key'])
		self.assertEquals(len(ips), 0)
dataset/ETHPy150Open Knewton/pettingzoo-python/pettingzoo/tests/test_discovery.py/DistributedMultiDiscovery.test_load_config_with_multiple_entries/original