deduction_consum.py
701 Bytes
import unittest
import json
from atdd.ATDDCase import ATDDCase
class Consum(ATDDCase):
def setUp(self):
pass
def test_deduction_consum(self):
app = 'live'
header_json = {"Content-Type": "application/json; charset=utf-8"}
url = self.uc_host + '/b/' + self.domain + "/qy/live-cast-expend/consum"
data = {
"enterprise": self.domain,
"app": app,
"lcelSpendAmout": 100,
"lcelType": 1,
"liveCastId":""
}
print(url, json.dumps(data))
result = self.post(url, None, json=data, headers=header_json)
print(result.json())
if __name__ == '__main__':
unittest.main()