From nobody Fri Apr 26 11:52:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15223246093561000.3056747103533; Thu, 29 Mar 2018 04:56:49 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65F84C047B63; Thu, 29 Mar 2018 11:56:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A64C5D72A; Thu, 29 Mar 2018 11:56:48 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 509E51809547; Thu, 29 Mar 2018 11:56:48 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2TBukar018146 for ; Thu, 29 Mar 2018 07:56:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id AE2EE17501; Thu, 29 Mar 2018 11:56:46 +0000 (UTC) Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A49C265AC5 for ; Thu, 29 Mar 2018 11:56:42 +0000 (UTC) Received: from mail-pg0-f53.google.com (mail-pg0-f53.google.com [74.125.83.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0451372FFB for ; Thu, 29 Mar 2018 11:56:42 +0000 (UTC) Received: by mail-pg0-f53.google.com with SMTP id b9so2891498pgf.6 for ; Thu, 29 Mar 2018 04:56:41 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.186]) by smtp.gmail.com with ESMTPSA id 86sm5880094pfh.93.2018.03.29.04.56.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 04:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KovIqV98006/yTNd65e2Qn7HpxMNKaRlspjkSk2z4BI=; b=MlDADLHT6sn5XLkj30nxSJS9EVa4eKIOYej+/qM6kdGb9sGxREm7xi+lh4opJ88+2e YJV0fmhHtXm002jP94m4ayMLIahzLbFV4RftF44fhSYLQS3uLZg6oT/jDcXflPcxuWco 5asT33ojzb4d1s1xKDU6Fs+ugrff+tSKgw0a99hlxOR1NtNdXgE+CG3f6R6GTPT9edpt migVCyaOjFy0nUgzvKPhv3M4/OINFP/XErSDNaQn9zSEqoEDbzMKJC/Mar+lngbo/igk NhxCjSBlJqpUuSoup6kb8WZfJGhz+GAQNSOj+O8bu5C2gCV0VSXOBHGxbKFsQ6uIKv2L P5lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KovIqV98006/yTNd65e2Qn7HpxMNKaRlspjkSk2z4BI=; b=F0Pc18UoHNigCUli0dFtlikg0rj0MpYGDq4UvRKCDingsRpog3ipTv+Do5vJ222US+ MW62IDUWEItSgjPT1h9cQS8Hp1A6tLPkpFzoKPCXCWLZZu/sk96toCaBd0wKEOoJEEcW bAzU4S4u4R/+gVGZ1Js3oad6I4MFXJbTjFmluFCfkzUwgQFMZKaOvi65UuaFlY7Lh0Ou l7zkT8PBrfjYCCzNRwYAcm4n9MwunRZXrBkKgOGqhavUCDuoBaEBsKvRWGlYvu6YKHgN kysdAXVRsR0JuEOcoos+tYen9QBm1SDsSLf/K2eqzyx2SromJ7tzWtb5XZBEPDrbYe/W QuDg== X-Gm-Message-State: AElRT7HqwLlHLx3ynub1q2u6D2QbtFvdgHnlbl7cN2/n1ZKajDW5e+vN +tqSLDInO9ypa+tZsBUH4JGeoQ== X-Google-Smtp-Source: AIpwx49igV7vNU5wSIWbu2E/vvfNoLYOPeP/c9Y/NZPoznLd4zd63BBnMRlPlILfQwJsmKnulgowCw== X-Received: by 10.101.88.65 with SMTP id s1mr5217366pgr.78.1522324601072; Thu, 29 Mar 2018 04:56:41 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Thu, 29 Mar 2018 17:26:25 +0530 Message-Id: <20180329115625.31673-1-shubhamjain7495@gmail.com> In-Reply-To: <20180329054621.27225-1-shubhamjain7495@gmail.com> References: <20180329054621.27225-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 29 Mar 2018 11:56:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 29 Mar 2018 11:56:42 +0000 (UTC) for IP:'74.125.83.53' DOMAIN:'mail-pg0-f53.google.com' HELO:'mail-pg0-f53.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.62 * (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, SPF_PASS) 74.125.83.53 mail-pg0-f53.google.com 74.125.83.53 mail-pg0-f53.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH] Fixed the max chars in line X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 29 Mar 2018 11:56:48 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Wraped long lines (limit to 90 columns) to improve the readability of the c= ode --- tests/test_rest.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/test_rest.py b/tests/test_rest.py index 458f54e..79de3fd 100755 --- a/tests/test_rest.py +++ b/tests/test_rest.py @@ -219,16 +219,17 @@ class RestTest(PatchewTestCase): self.assertEqual(resp.data['count'], 0) =20 def test_series_delete(self): - resp1 =3D self.apply_and_retrieve('0001-simple-patch.mbox.gz', - self.p.id, '20160628014747.20971-1-= famz@redhat.com') + test_message_id =3D '20160628014747.20971-1-famz@redhat.com' + resp1 =3D self.apply_and_retrieve('0001-simple-patch.mbox.gz',self= .p.id, test_message_id) + resp_before =3D self.api_client.get(self.REST_BASE + 'projects/' += str(self.p.id)=20 + + '/series/' + test_message_id += '/') + resp =3D self.api_client.delete(self.REST_BASE + 'projects/' + str= (self.p.id)=20 + + '/series/' + test_message_id + '/') + resp_after =3D self.api_client.get(self.REST_BASE + 'projects/' + = str(self.p.id)=20 + + '/series/' + test_message_id + = '/') =20 - resp_before =3D self.api_client.get(self.REST_BASE + 'projects/' += str(self.p.id) + '/series/20160628014747.20971-1-famz@redhat.com/') self.assertEqual(resp_before.status_code, 200) - - resp =3D self.api_client.delete(self.REST_BASE + 'projects/' + str= (self.p.id) + '/series/20160628014747.20971-1-famz@redhat.com/') self.assertEqual(resp.status_code, 204) - - resp_after =3D self.api_client.get(self.REST_BASE + 'projects/' + = str(self.p.id) + '/series/20160628014747.20971-1-famz@redhat.com/') self.assertEqual(resp_after.status_code, 404) =20 def test_message(self): --=20 2.14.3 (Apple Git-98) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel