def test_get_fun(self):
        mock_ret = MagicMock(return_value='DB')
        with patch.object(salt.loader, 'returners',
                          MagicMock(return_value={'mysql.get_fun': mock_ret})):
            self.assertEqual(ret.get_fun('mysql', 'net'), 'DB')

    # 'get_jids' function tests: 1
Test if it return info about last time fun was called on each minion
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/ret_test.py/RetTestCase.test_get_fun