summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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()