def test_login_004(self): data = Setup(self.trade, self.case_id_004) data.asset_login_setup() r_json = login.asset_login(data.username, data.passwd) if r_json["success"] is False and r_json['message'] == "登录服务错误": data.set_result('执行成功', str(r_json)) elif r_json["success"] is True and r_json['message'] != "登录服务错误": data.set_result('执行失败', str(r_json))
def test_login(self): login.asset_login(self.username, self.password)