mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix test for "start" function
This commit is contained in:
parent
fa5163033e
commit
4040c82515
@ -320,14 +320,14 @@ class XapiTestCase(TestCase):
|
||||
'''
|
||||
mock = MagicMock(return_value=True)
|
||||
with patch.dict(xapi.__salt__, {'cmd.run': mock}):
|
||||
self.assertTrue(xapi.create("salt"))
|
||||
self.assertTrue(xapi.start("salt"))
|
||||
|
||||
def test_start(self):
|
||||
'''
|
||||
Test to reboot a domain via ACPI request
|
||||
'''
|
||||
mock = MagicMock(return_value=True)
|
||||
with patch.object(xapi, "create", mock):
|
||||
with patch.object(xapi, "start", mock):
|
||||
self.assertTrue(xapi.start("salt"))
|
||||
|
||||
def test_reboot(self):
|
||||
|
Loading…
Reference in New Issue
Block a user