#coding:utf-8
from unittest import mock

res_data = {"code":0,
            "msg":"OK"
            }
request = mock.Mock(return_value=res_data)

data = {'user':'python01',
        'pay_pwd':123456,
        'money':88.88}

res = request(data)
print(res)
d3575cf71b7659f96df6e2f53ba41bcd7d6a7680
<mask token>

<mask token>
print(res)

<mask token>
res_data = {'code': 0, 'msg': 'OK'}
request = mock.Mock(return_value=res_data)
data = {'user': 'python01', 'pay_pwd': 123456, 'money': 88.88}
res = request(data)
print(res)

from unittest import mock
res_data = {'code': 0, 'msg': 'OK'}
request = mock.Mock(return_value=res_data)
data = {'user': 'python01', 'pay_pwd': 123456, 'money': 88.88}
res = request(data)
print(res)

#coding:utf-8
from unittest import mock

res_data = {"code":0,
            "msg":"OK"
            }
request = mock.Mock(return_value=res_data)

data = {'user':'python01',
        'pay_pwd':123456,
        'money':88.88}

res = request(data)
print(res)