예제 #1
0
 def test_config_ftype(self):
     with open('settings.csv', 'w') as f:
         f.write("hello there, I'm not a config file")
     config = vcluster.open_config('settings.csv')
     os.remove('settings.csv')
     self.assertFalse(config)
예제 #2
0
 def test_yaml_config(self):
     config = vcluster.open_config('settings.yaml')
     self.assertEquals(config['command'], 'python unittest.py')
     self.assertTrue(config['command'])
예제 #3
0
 def test_json_config(self):
     # FIXME JSON support is actually totally untested.
     config = vcluster.open_config('sample.json')
예제 #4
0
 def setUp(self):
     self.config = vcluster.open_config('settings.yaml')