From notifications-return-17145-archive-asf-public=cust-asf.ponee.io@libcloud.apache.org Sun May 3 19:24:33 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id D9E4E180621 for ; Sun, 3 May 2020 21:24:32 +0200 (CEST) Received: (qmail 25469 invoked by uid 500); 3 May 2020 19:24:32 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 25460 invoked by uid 500); 3 May 2020 19:24:32 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 25457 invoked by uid 99); 3 May 2020 19:24:32 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 May 2020 19:24:32 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 278588BFAB; Sun, 3 May 2020 19:24:32 +0000 (UTC) Date: Sun, 03 May 2020 19:24:32 +0000 To: "commits@libcloud.apache.org" Subject: [libcloud] branch trunk updated: Add additional test case. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158853387197.3813.11090081589810636973@gitbox.apache.org> From: tomaz@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: libcloud X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: b8d39744dc990c14040426102cebd56fbb4efedd X-Git-Newrev: 0aed5581837254ce96e14c1964c93002e17503da X-Git-Rev: 0aed5581837254ce96e14c1964c93002e17503da X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/libcloud.git The following commit(s) were added to refs/heads/trunk by this push: new 0aed558 Add additional test case. 0aed558 is described below commit 0aed5581837254ce96e14c1964c93002e17503da Author: Tomaz Muraus AuthorDate: Sun May 3 21:24:16 2020 +0200 Add additional test case. --- libcloud/test/compute/test_digitalocean_v2.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcloud/test/compute/test_digitalocean_v2.py b/libcloud/test/compute/test_digitalocean_v2.py index 88accbf..e79d757 100644 --- a/libcloud/test/compute/test_digitalocean_v2.py +++ b/libcloud/test/compute/test_digitalocean_v2.py @@ -90,6 +90,11 @@ class DigitalOcean_v2_Tests(LibcloudTestCase): self.assertEqual(size.name, '512mb') self.assertTrue(location.id in size.extra['regions']) + location = self.driver.list_locations()[1] + location.id = 'doesntexist' + sizes = self.driver.list_sizes(location=location) + self.assertEqual(len(sizes), 0) + def test_list_locations_success(self): locations = self.driver.list_locations() self.assertTrue(len(locations) == 2)