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"])
示例#2
0
 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'])