From 9331880e7364787790239014c14b73f380aa6a1f Mon Sep 17 00:00:00 2001
From: Tim Burke <tim.burke@gmail.com>
Date: Fri, 25 Aug 2023 09:26:27 -0700
Subject: [PATCH] tests: Fix timeout assertion for py36, py37

The kwargs property was introduced in py38.

Change-Id: Id380fee6a2131bf88baa27145c8158277eef10c1
---
 test/unit/test_shell.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/test_shell.py b/test/unit/test_shell.py
index e76f73c0..eedbc4be 100644
--- a/test/unit/test_shell.py
+++ b/test/unit/test_shell.py
@@ -2498,7 +2498,7 @@ class TestTimeoutOption(unittest.TestCase):
             connection.reset_mock()
             with self.subTest(timeout=timeout):
                 swiftclient.shell.main(["", "stat", "--timeout", timeout])
-                self.assertEqual(connection.mock_calls[0].kwargs['timeout'],
+                self.assertEqual(connection.mock_calls[0][2]['timeout'],
                                  expected)