def test_get_all(self): ''' Test to return all installed services ''' with patch.dict(smf.__salt__, {'cmd.run': MagicMock(return_value='A\n')}): self.assertListEqual(smf.get_all(), ['A'])