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 <[email protected]>
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)