def test_stop(self): """ Test to stop the specified service """ with patch.dict(smf.__salt__, {"cmd.retcode": MagicMock(return_value=False)}): self.assertTrue(smf.stop("name"))
def test_stop(self): ''' Test to stop the specified service ''' with patch.dict(smf.__salt__, {'cmd.retcode': MagicMock(return_value=False)}): self.assertTrue(smf.stop('name'))