def test_2(self): ss = shuju()[3] aa = MX().mingxi(ss[0]) self.assertEqual(aa["data"]["ascCode"],None, msg="None=null") print("ascCode为空值")
def test_1(self): ss=shuju()[3] aa=MX().mingxi(ss[0]) self.assertEqual(aa["errMsg"], "处理成功", msg="处理") print("能正常处理")
def test_3(self): ss = shuju()[0] aa = MX().mingxi(ss[0]) self.assertEqual(aa["data"]["orderNo"], "R2100005181116190", msg="处理") print("断言成功")
def test_3(self): ss = shuju()[3] aa = MX().mingxi(ss[0]) self.assertEqual(aa["data"]["orderNo"],None, msg="None=null") print("orderNo为空值")
def test_2(self): ss = shuju()[0] aa = MX().mingxi(ss[0]) self.assertEqual(aa["data"]["ascCode"], "2100005", msg="处理") print("断言成功")