From 2be4716bc9ebbdb1da69231d4618489dff8af85f Mon Sep 17 00:00:00 2001 From: Clay Gerrard Date: Mon, 16 Sep 2019 13:06:15 -0500 Subject: [PATCH] More multi-char-delimiter func test coverage Change-Id: I4cad872ef97313ec19a8e4ef042696565a56d4c5 --- test/functional/tests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/functional/tests.py b/test/functional/tests.py index 6c63cfa0a3..cdf631d23c 100644 --- a/test/functional/tests.py +++ b/test/functional/tests.py @@ -693,7 +693,7 @@ class TestContainer(Base): delimiter = '-&' files = ['test', delimiter.join(['test', 'bar']), - delimiter.join(['test', 'foo'])] + delimiter.join(['test', 'foo']), "test-'baz"] for f in files: file_item = cont.file(f) self.assertTrue(file_item.write_random()) @@ -702,20 +702,21 @@ class TestContainer(Base): results = cont.files(parms={'format': format_type}) if isinstance(results[0], dict): results = [x.get('name', x.get('subdir')) for x in results] - self.assertEqual(results, ['test', 'test-&bar', 'test-&foo']) + self.assertEqual(results, ['test', 'test-&bar', 'test-&foo', + "test-'baz"]) results = cont.files(parms={'delimiter': delimiter, 'format': format_type}) if isinstance(results[0], dict): results = [x.get('name', x.get('subdir')) for x in results] - self.assertEqual(results, ['test', 'test-&']) + self.assertEqual(results, ['test', 'test-&', "test-'baz"]) results = cont.files(parms={'delimiter': delimiter, 'format': format_type, 'reverse': 'yes'}) if isinstance(results[0], dict): results = [x.get('name', x.get('subdir')) for x in results] - self.assertEqual(results, ['test-&', 'test']) + self.assertEqual(results, ["test-'baz", 'test-&', 'test']) def testListDelimiterAndPrefix(self): cont = self.env.account.container(Utils.create_name())