Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_config_replication_factor(self):
c = config.Config(self.simple_config)
self.assertEqual(c.replication_factor(), 1)
def setUp(self):
config_file = "tests/conf/simple.conf"
config = carbonate.config.Config(config_file)
self.cluster = carbonate.cluster.Cluster(config)
def test_config_multiple_clusters(self):
c = config.Config(self.real_config)
expected = ['main', 'standalone', 'fnv']
self.assertEqual(set(c.clusters()), set(expected))