def test_server_list(self): """ Test parsing of a config file """ fp = StringIO(TEST_CONFIG.format(**os.environ)) c = Config(fp) dbs = c.server_names() assert set(dbs) == set(['main', 'web'])
def test_server_list(self): """ Test parsing of a config file """ fp = StringIO(TEST_CONFIG) c = Config(fp) dbs = c.server_names() assert set(dbs) == set(['main', 'web'])
def test_server_list(self): fp = StringIO(TEST_CONFIG.format(**os.environ)) c = Config(fp) dbs = c.server_names() self.assertEqual(set(dbs), set(['main', 'web']))
def test_server_list(self): fp = StringIO(TEST_CONFIG.format(**os.environ)) c = Config(fp) dbs = c.server_names() self.assertEqual(set(dbs), set(['main', 'web']))