def test_get_stopped(self): """ Test to return the stopped services """ with patch.dict(smf.__salt__, {"cmd.run": MagicMock(return_value="A\n")}): self.assertListEqual(smf.get_stopped(), ["A"])
def test_get_stopped(self): ''' Test to return the stopped services ''' with patch.dict(smf.__salt__, {'cmd.run': MagicMock(return_value='A\n')}): self.assertListEqual(smf.get_stopped(), ['A'])