Esempio n. 1
0
 def test_018_api_court_searchnocap_token_none(self):
     """
     desc       : 获取被执行人数据  token空
     author     : 罗林
     """
     rs1 = DishonestexecutorAction.test_api_court_searchnocap(
         cardnum=cardnum, name=name, token=token + '1')
     Assertion.verity(json.loads(rs1)['code'], 10501)
     Assertion.verity(json.loads(rs1)['msg'], 'token错误')
Esempio n. 2
0
 def test_015_api_court_searchnocap_19cardnum(self):
     """
     desc       : 获取被执行人数据 19位数cardnum
     author     : 罗林
     """
     rs1 = DishonestexecutorAction.test_api_court_searchnocap(
         cardnum=fake.random_number(19), name='', token=token)
     Assertion.verity(json.loads(rs1)['code'], 10200)
     Assertion.verity(json.loads(rs1)['msg'], '获取被执行人数据成功')
Esempio n. 3
0
 def test_016_api_court_searchnocap_cardnum_none(self):
     """
     desc       : 获取被执行人数据 cardnum空
     author     : 罗林
     """
     rs1 = DishonestexecutorAction.test_api_court_searchnocap(cardnum='',
                                                              name=name,
                                                              token=token)
     Assertion.verity(json.loads(rs1)['code'], 10400)
     Assertion.verity(json.loads(rs1)['msg'], 'cardnum不能为空')
Esempio n. 4
0
 def test_013_api_court_searchnocap_name_none(self):
     """
     desc       : 获取被执行人数据 name为空
     author     : 罗林
     """
     rs1 = DishonestexecutorAction.test_api_court_searchnocap(
         cardnum=cardnum, name='', token=token)
     if json.loads(rs1)['code'] == 10300:
         Assertion.verity(json.loads(rs1)['msg'], '验证码错误或验证码已过期,请重试!')
     elif json.loads(rs1)['code'] == 10200:
         Assertion.verity(json.loads(rs1)['msg'], '获取被执行人数据成功')