diff options
Diffstat (limited to 'test/unit/test_shell.py')
-rw-r--r-- | test/unit/test_shell.py | 4 |
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( |