summaryrefslogtreecommitdiff
path: root/test/unit/test_shell.py
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2022-03-22 10:14:19 -0700
committerTim Burke <tim.burke@gmail.com>2022-05-24 08:33:02 -0700
commit5d451fb92031989ea9982fc29140175014448ea2 (patch)
treeb58229bfa7dd09d980894b3aad928f5706c8f151 /test/unit/test_shell.py
parent20c97e83d3af855e5e238dfa4b10b7bf29533d57 (diff)
downloadpython-swiftclient-5d451fb92031989ea9982fc29140175014448ea2.tar.gz
More cleanup following py2 removal
* Drop py2-only hacking pin from test-requirements. * Remove quote() helper; urllib.parse.quote() works fine. * Remove some useless code. Change-Id: I9ffc923f58f1d11538f83ff26f7beb53cdf134c3
Diffstat (limited to 'test/unit/test_shell.py')
-rw-r--r--test/unit/test_shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_shell.py b/test/unit/test_shell.py
index 94168b5..105dddb 100644
--- a/test/unit/test_shell.py
+++ b/test/unit/test_shell.py
@@ -1622,7 +1622,7 @@ class TestShell(unittest.TestCase):
with mock.patch('swiftclient.shell.SwiftService.delete') as mock_func:
with CaptureOutput() as out:
mock_func.return_value = [res]
- swiftclient.shell.main(base_argv + [container.encode('utf-8')])
+ swiftclient.shell.main(base_argv + [container])
mock_func.assert_called_once_with(container=container)
self.assertTrue(out.out.find(
@@ -1635,7 +1635,7 @@ class TestShell(unittest.TestCase):
with mock.patch('swiftclient.shell.SwiftService.delete') as mock_func:
with CaptureOutput() as out:
mock_func.return_value = [res]
- swiftclient.shell.main(base_argv + [container.encode('utf-8')])
+ swiftclient.shell.main(base_argv + [container])
mock_func.assert_called_once_with(container=container)
self.assertTrue(out.out.find(