test_Query_Default_Integration_level.py
699 Bytes
import unittest
from atdd.PcApiTest import PcApiTest
# 积分计算等级详情
class Querydefaulintegration(PcApiTest):
def setUp(self):
self.do_login(self.host, self.mobile, self.psw, self.domain)
def test_default_noneparameter(self):
interfaceUrl = "/Integral/Apicp/Level/Detail"
data = {
}
result = self.PcApiTest(interfaceUrl, data)
print(result)
self.assertEqual(0, result["errcode"], msg=result["errmsg"])
self.assertEqual("ok", result["errmsg"], msg=result["errmsg"])
# errcode = result['errcode']
# self.assertEquals(0, errcode)
return result
if __name__ == '__main__':
unittest.main()