mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
remove unnecessary patch in zfs.is_supported test
This commit is contained in:
parent
58c4f29f96
commit
d19fef963e
1 changed files with 5 additions and 6 deletions
|
@ -896,12 +896,11 @@ class ZfsUtilsTestCase(TestCase):
|
|||
Test zfs.is_supported method
|
||||
'''
|
||||
for value in [False, True]:
|
||||
with patch.object(zfs, '_zpool_cmd', MagicMock(return_value=value)):
|
||||
with patch('salt.utils.path.which',
|
||||
MagicMock(return_value=value)):
|
||||
with patch('salt.utils.platform.is_linux',
|
||||
MagicMock(return_value=value)):
|
||||
self.assertEqual(value, zfs.is_supported())
|
||||
with patch('salt.utils.path.which',
|
||||
MagicMock(return_value=value)):
|
||||
with patch('salt.utils.platform.is_linux',
|
||||
MagicMock(return_value=value)):
|
||||
self.assertEqual(value, zfs.is_supported())
|
||||
|
||||
def test_property_data_zpool(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue