Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 799EF200B8B for ; Tue, 4 Oct 2016 23:36:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 780CA160ADC; Tue, 4 Oct 2016 21:36:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BF475160AC7 for ; Tue, 4 Oct 2016 23:36:30 +0200 (CEST) Received: (qmail 62956 invoked by uid 500); 4 Oct 2016 21:36:30 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 62947 invoked by uid 99); 4 Oct 2016 21:36:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 21:36:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 96E00180516 for ; Tue, 4 Oct 2016 21:36:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6OZ78GrPmgHl for ; Tue, 4 Oct 2016 21:36:27 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 4987B5FB18 for ; Tue, 4 Oct 2016 21:36:27 +0000 (UTC) Received: (qmail 62807 invoked by uid 99); 4 Oct 2016 21:36:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 21:36:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4CFF5E009E; Tue, 4 Oct 2016 21:36:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: robertwb@apache.org To: commits@beam.incubator.apache.org Date: Tue, 04 Oct 2016 21:36:26 -0000 Message-Id: <510996751a0b4c4f8b304ef4ac663813@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-beam git commit: Add equality methods to range source. archived-at: Tue, 04 Oct 2016 21:36:31 -0000 Repository: incubator-beam Updated Branches: refs/heads/python-sdk 3a69db0c5 -> 99a33ecdb Add equality methods to range source. Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/837c5aa3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/837c5aa3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/837c5aa3 Branch: refs/heads/python-sdk Commit: 837c5aa31dd170a9c7e1ba6559e77457bf4a9f7f Parents: 3a69db0 Author: Robert Bradshaw Authored: Tue Oct 4 13:12:08 2016 -0700 Committer: Robert Bradshaw Committed: Tue Oct 4 14:35:56 2016 -0700 ---------------------------------------------------------------------- sdks/python/apache_beam/io/concat_source_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/837c5aa3/sdks/python/apache_beam/io/concat_source_test.py ---------------------------------------------------------------------- diff --git a/sdks/python/apache_beam/io/concat_source_test.py b/sdks/python/apache_beam/io/concat_source_test.py index 828bdb0..e4df472 100644 --- a/sdks/python/apache_beam/io/concat_source_test.py +++ b/sdks/python/apache_beam/io/concat_source_test.py @@ -70,6 +70,14 @@ class RangeSource(iobase.BoundedSource): return yield k + # For testing + def __eq__(self, other): + return (type(self) == type(other) + and self._start == other._start and self._end == other._end) + + def __ne__(self, other): + return not self == other + class ConcatSourceTest(unittest.TestCase):