You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/10/22 11:43:55 UTC
[libcloud] 04/04: Add additional assertion.
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
commit 53e5cf48c7469b01548f0c36ba870a7fd5c5f55b
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Oct 22 13:40:14 2021 +0200
Add additional assertion.
---
libcloud/test/storage/test_local.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libcloud/test/storage/test_local.py b/libcloud/test/storage/test_local.py
index f1d5d59..cfd5d44 100644
--- a/libcloud/test/storage/test_local.py
+++ b/libcloud/test/storage/test_local.py
@@ -159,6 +159,11 @@ class LocalTests(unittest.TestCase):
objects = self.driver.list_container_objects(container=container)
self.assertEqual(len(objects), 5)
+ prefix = os.path.join('path', 'invalid')
+ objects = self.driver.list_container_objects(container=container,
+ prefix=prefix)
+ self.assertEqual(len(objects), 0)
+
prefix = os.path.join('path', 'to')
objects = self.driver.list_container_objects(container=container,
prefix=prefix)