Exemplo n.º 1
0
 def test_flagfile_managed(self):
     self.files['foo.flags'] = ''
     before = ['--flagfile=foo.flags']
     with flagfile.handle_flagfiles_managed(before) as after:
         self.assertEquals(after, ['--config-file=' + self.tempfiles[-1]])
         self.assertEquals(self.files[self.tempfiles[-1]], '[DEFAULT]\n')
     self.assertTrue(self.tempdir is None)
Exemplo n.º 2
0
 def __call__(self, argv):
     with flagfile.handle_flagfiles_managed(argv[1:]) as args:
         return argv[:1] + super(NovaConfigOpts, self).__call__(args)
Exemplo n.º 3
0
 def __call__(self, argv):
     with flagfile.handle_flagfiles_managed(argv[1:]) as args:
         return argv[:1] + super(NovaConfigOpts, self).__call__(args)