summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Hakim <pasc@redellipse.net>2013-02-15 21:57:42 +1100
committerPascal Hakim <pasc@redellipse.net>2013-02-15 21:57:42 +1100
commit3988e01a3bb5a55f1463df589d1027fd419e02d6 (patch)
treec59f422e34421bafcfb9b1d01353d9b081ac591e
parentc1a73c8f019adac28aa2c7f5c7097e3a2b2475d0 (diff)
downloadboto-3988e01a3bb5a55f1463df589d1027fd419e02d6.tar.gz
Fixed up API version check in AWSQueryConnection tests
-rw-r--r--tests/unit/test_connection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py
index d9ece833..8757d4e6 100644
--- a/tests/unit/test_connection.py
+++ b/tests/unit/test_connection.py
@@ -69,7 +69,7 @@ class MockAWSService(AWSQueryConnection):
This is used to test the AWSQueryConnection object is behaving properly.
"""
- API_VERSION = '2012-01-01'
+ APIVersion = '2012-01-01'
def _required_auth_capability(self):
return ['sign-v2']
@@ -129,6 +129,7 @@ class TestAWSQueryConnectionSimple(TestAWSQueryConnection):
args = urlparse.parse_qs(HTTPretty.last_request.body)
self.assertEqual(args['AWSAccessKeyId'], ['access_key'])
self.assertEqual(args['SignatureMethod'], ['HmacSHA256'])
+ self.assertEqual(args['Version'], [conn.APIVersion])
self.assertEqual(args['par1'], ['foo'])
self.assertEqual(args['par2'], ['baz'])