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)
def test_yaml_config(self): config = vcluster.open_config('settings.yaml') self.assertEquals(config['command'], 'python unittest.py') self.assertTrue(config['command'])
def test_json_config(self): # FIXME JSON support is actually totally untested. config = vcluster.open_config('sample.json')
def setUp(self): self.config = vcluster.open_config('settings.yaml')