예제 #1
0
파일: test_config.py 프로젝트: stig/barman
 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'])
예제 #2
0
파일: test_config.py 프로젝트: f4nt/barman
 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'])
예제 #3
0
 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']))
예제 #4
0
 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']))