# -*- coding:UTF-8 -*-
import unittest,time,json
from Vaffle_interface.public_1.func_requests import FuncRequests


#------------------帖子浏览上报数据----------------------
class Group_noticedel(unittest.TestCase):

    def setUp(self):
       self.r=FuncRequests()

    #----------------------帖子浏览上报数据--------------------------
    def testcase_001(self):
        sheet_index = 14
        row = 65
        print("testcase_001 帖子浏览上报数据:")

        member_id = 'b9f73f23-7bc6-4de6-9f9b-df2c98076221'
        obj = ({'member_id':960,'post_ids':(12,23,44)},)
        p = json.dumps(obj)
        payload = {'p':p}
        print('p=',p)
        result=self.r.interface_requests_payload(member_id,sheet_index,row,payload)

        self.assertEqual(10000, result['code'])
        print("code返回值：10000")

if __name__ == "__main__":
    unittest.main()