def test_get_minions(self):
        mock_ret = MagicMock(return_value='DB')
        with patch.object(salt.loader, 'returners',
                          MagicMock(return_value=
                                    {'mysql.get_minions': mock_ret})):
            self.assertEqual(ret.get_minions('mysql'), 'DB')
Test if it return a list of all minions
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/ret_test.py/RetTestCase.test_get_minions