def test_039_get_result(self):
     """
     Time       : 2019-11-14
     author     : 罗林
     desc       : 获取运营商采集数据接口
     """
     rs = json.loads(TelecomcrawlerAction.test_api_telecom_get_result(reqid=reqid, token=token, name=phone))
     Assertion.verity(rs['retCode'], 1)
     Assertion.verity(rs['retMsg'], '成功')
     Assertion.verityContain(rs['data'], 'address')
     Assertion.verityContain(rs['data'], 'available_balance')
     Assertion.verityContain(rs['data'], 'state')
     Assertion.verityContain(rs['data'], 'province')
     Assertion.verityContain(rs['data'], 'package_name')
     Assertion.verityContain(rs['data'], 'open_time')
     Assertion.verityContain(rs['data'], 'name')
     Assertion.verityContain(rs['data'], 'mobile')
     Assertion.verityContain(rs['data'], 'level')
     Assertion.verityContain(rs['data'], 'idcard')
     Assertion.verityContain(rs['data'], 'email')
     Assertion.verityContain(rs['data'], 'city')
     Assertion.verityContain(rs['data'], 'carrier')
     Assertion.verityContain(rs['data'], 'bills')
     Assertion.verityContain(rs['data'], 'calls')
     Assertion.verityContain(rs['data'], 'smses')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_basicinfo')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_friend_circle')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_active_degree')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_cell_behavior')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_consumption_detail')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_contact_region')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_call_contact_detail')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_call_duration_detail')
     Assertion.verityContain(rs['data']['orderResult'], 'etl_behavior_check')
 def test_019_api_telecom_get_result_all_none(self):
     """
     Time       :2019-06-19
     author     : 罗林
     desc       :获取运营商采集数据接口
     """
     rs1 = TelecomcrawlerAction.test_api_telecom_get_result(reqid='', token='', name='')
     Assertion.verity(json.loads(rs1)['code'], 0)
     Assertion.verity(json.loads(rs1)['retMsg'], 'token不能为空')
     Assertion.verityNone(json.loads(rs1)['data'])
 def test_020_api_telecom_get_result_token_error(self):
     """
     Time       :2019-06-19
     author     : 罗林
     desc       :获取运营商采集数据接口
     """
     rs1 = TelecomcrawlerAction.test_api_telecom_get_result(
         reqid='18750fa83bcc11e98811a81e844f9fc2', token='cdddef32b7ec4be9926d30f5451e76c37', name=phone)
     Assertion.verity(json.loads(rs1)['retCode'], 0)
     Assertion.verity(json.loads(rs1)['retMsg'], 'token错误')
     Assertion.verityNone(json.loads(rs1)['data'])
 def test_006_api_telecom_get_result(self):
     """
     Time       :2019-06-19
     author     : 罗林
     desc       :获取运营商采集数据接口
     """
     rs1 = TelecomcrawlerAction.test_api_telecom_get_result(
         reqid=reqid, token=token, name=phone)
     Assertion.verity(json.loads(rs1)['code'], 0)
     Assertion.verity(json.loads(rs1)['retMsg'], '数据为空请检查当前手机号是否授权成功!')
     Assertion.verityNone(json.loads(rs1)['data'])