Add cmd_mock back in to function spec

This commit is contained in:
rallytime 2016-08-25 07:05:52 -06:00
parent a671f0a092
commit 92f8c836e8

View File

@ -53,7 +53,7 @@ class LocalClientTestCase(TestCase,
@patch('salt.client.LocalClient.cmd', return_value={'minion1': ['first.func', 'second.func'],
'minion2': ['first.func', 'second.func']})
def test_cmd_subset(self):
def test_cmd_subset(self, cmd_mock):
with patch('salt.client.LocalClient.cmd_cli') as cmd_cli_mock:
self.client.cmd_subset('*', 'first.func', sub=1, cli=True)
try: