Example #1
0
 def test_use_sudo(self):
     self.flags(disable_rootwrap=True, group='workarounds')
     cmd = utils._get_root_helper()
     self.assertEqual('sudo', cmd)
Example #2
0
 def test_use_sudo(self):
     self.flags(disable_rootwrap=True, group='workarounds')
     cmd = utils._get_root_helper()
     self.assertEqual('sudo', cmd)
Example #3
0
 def test_use_rootwrap(self):
     self.flags(disable_rootwrap=False, group='workarounds')
     self.flags(rootwrap_config='foo')
     cmd = utils._get_root_helper()
     self.assertEqual('sudo patron-rootwrap foo', cmd)
Example #4
0
 def test_use_rootwrap(self):
     self.flags(disable_rootwrap=False, group='workarounds')
     self.flags(rootwrap_config='foo')
     cmd = utils._get_root_helper()
     self.assertEqual('sudo patron-rootwrap foo', cmd)