Fixed test failures for Colton

This commit is contained in:
twangboy 2015-06-18 12:58:18 -06:00
parent b949856ae6
commit 98e7e90299
2 changed files with 7 additions and 3 deletions

View file

@ -63,7 +63,9 @@ class WinServermanagerTestCase(TestCase):
Test if it install a feature.
'''
with patch.dict(win_servermanager.__salt__, {'cmd.run': self._m_run()}):
self.assertDictEqual(win_servermanager.install('Telnet-Client'), {})
self.assertDictEqual(win_servermanager.install('Telnet-Client'), {
'message': ''
})
# 'remove' function tests: 1
@ -72,7 +74,9 @@ class WinServermanagerTestCase(TestCase):
Test if it remove an installed feature.
'''
with patch.dict(win_servermanager.__salt__, {'cmd.run': self._m_run()}):
self.assertDictEqual(win_servermanager.remove('Telnet-Client'), {})
self.assertDictEqual(win_servermanager.remove('Telnet-Client'), {
'message': ''
})
if __name__ == '__main__':

View file

@ -56,7 +56,7 @@ class WinServermanagerTestCase(TestCase):
with patch.dict(win_servermanager.__opts__, {"test": False}):
ret.update({'changes': {'feature': {'Success': 'True'}},
'result': True})
'result': True, 'comment': 'Installed salt'})
self.assertDictEqual(win_servermanager.installed('salt'),
ret)