def test_004_api_78dk_app_common_getCites_error(self): """ 获取城市列表 :return: """ res = json.loads(AppAction.test_api_78dk_app_common_getCites(parent='abc')) Assertion.verity(res['code'], '20000')
def test_005_api_78dk_app_common_getCites_not_exits(self): """ 获取城市列表 :return: """ res = json.loads(AppAction.test_api_78dk_app_common_getCites(parent=fake.ean8())) Assertion.verity(res['code'], '10000')
def test_002_api_78dk_app_common_getCites(self): """ 获取城市列表 :return: """ res = json.loads(AppAction.test_api_78dk_app_common_getCites(parent=110000)) Assertion.verity(res['code'], '10000') Assertion.verityContain(res['data'], 'id') Assertion.verityContain(res['data'], 'name')