forgot to mock the proper one

This commit is contained in:
Alessandro -oggei- Ogier 2017-09-08 21:37:09 +02:00
parent 51c7a1ba00
commit 496f14a7e7

View File

@ -97,7 +97,7 @@ class GenesisTestCase(TestCase):
'cmd.run': MagicMock(),
'disk.blkid': MagicMock(return_value={})}):
with patch('salt.modules.genesis.salt.utils.which', return_value=True):
with patch('salt.modules.genesis.salt.utils.validate.path.is_readable',
with patch('salt.modules.genesis.salt.utils.validate.path.is_executable',
return_value=True):
param_set['params'].update(common_parms)
self.assertEqual(genesis.bootstrap(**param_set['params']), None)