summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel G. Taylor <danielgtaylor@gmail.com>2014-12-22 14:30:58 -0800
committerDaniel G. Taylor <danielgtaylor@gmail.com>2014-12-22 14:30:58 -0800
commit84261484da57cf3a7a060829e09eab435f300443 (patch)
treef1fa33b1ec316e85cf8a45cfa14f59f9a19dc055 /tests
parentcc4d42d311d5d7eb6d40cd03e0f81a7566d453d2 (diff)
parenteebcb114e0941ad0ecd4f86eec26d8449fd1b1d0 (diff)
downloadboto-84261484da57cf3a7a060829e09eab435f300443.tar.gz
Merge pull request #2817 from bhagany/patch-1
Fix bug by using correct string joining syntax. Fixes #2817.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/mws/test_connection.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/mws/test_connection.py b/tests/unit/mws/test_connection.py
index e3830492..fade578d 100644
--- a/tests/unit/mws/test_connection.py
+++ b/tests/unit/mws/test_connection.py
@@ -192,6 +192,14 @@ doc/2009-01-01/">
self.assertTrue('throttled' in str(err.reason))
self.assertEqual(int(err.status), 200)
+
+ def test_sandboxify(self):
+ # Create one-off connection class that has self._sandboxed = True
+ conn = MWSConnection(https_connection_factory=self.https_connection_factory,
+ aws_access_key_id='aws_access_key_id',
+ aws_secret_access_key='aws_secret_access_key',
+ sandbox=True)
+ self.assertEqual(conn._sandboxify('a/bogus/path'), 'a/bogus_Sandbox/path')
if __name__ == '__main__':
unittest.main()