libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] branch trunk updated: Add additional test case.
Date Sun, 03 May 2020 19:24:32 GMT
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 <tomaz@tomaz.me>
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)


Mime
View raw message