Skip to content

Commit

Permalink
Merge pull request #19 from twangboy/merge-forward-fixes
Browse files Browse the repository at this point in the history
Fixed test failures for Colton
  • Loading branch information
basepi committed Jun 18, 2015
2 parents b949856 + 98e7e90 commit 5b7a65d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tests/unit/modules/win_servermanager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def test_install(self):
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

Expand All @@ -72,7 +74,9 @@ def test_remove(self):
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__':
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/states/win_servermanager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_installed(self):

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)

Expand Down

0 comments on commit 5b7a65d

Please sign in to comment.