mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
06c6a1f44a
commit
e9b94d36d3
1 changed files with 8 additions and 6 deletions
|
@ -46,13 +46,15 @@ class RhipTestCase(TestCase):
|
|||
|
||||
with patch.dict(rh_ip.__salt__, {'kmod.load':
|
||||
MagicMock(return_value=None)}):
|
||||
with patch.object(rh_ip, '_read_temp', return_value='A'):
|
||||
self.assertEqual(rh_ip.build_bond('iface', test='A'),
|
||||
'A')
|
||||
with patch.object(rh_ip, '_write_file_iface',
|
||||
return_value=None):
|
||||
with patch.object(rh_ip, '_read_temp', return_value='A'):
|
||||
self.assertEqual(rh_ip.build_bond('iface', test='A'),
|
||||
'A')
|
||||
|
||||
with patch.object(rh_ip, '_read_file', return_value='A'):
|
||||
self.assertEqual(rh_ip.build_bond('iface', test=None),
|
||||
'A')
|
||||
with patch.object(rh_ip, '_read_file', return_value='A'):
|
||||
self.assertEqual(rh_ip.build_bond('iface', test=None),
|
||||
'A')
|
||||
|
||||
def test_build_interface(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue