Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: tests/s3/test_connection.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/s3/other_cacerts.txt ('k') | tests/s3/test_encryption.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/s3/test_connection.py
diff --git a/boto/tests/test_s3connection.py b/tests/s3/test_connection.py
similarity index 96%
rename from boto/tests/test_s3connection.py
rename to tests/s3/test_connection.py
index 3dd936f3fdb7c2172e7c724e6c6438e1da06a7a6..4c209bdd489d0d48935cbee4da19d5f00e8d676a 100644
--- a/boto/tests/test_s3connection.py
+++ b/tests/s3/test_connection.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
+# Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
@@ -68,6 +67,9 @@ class S3ConnectionTest (unittest.TestCase):
url = k.generate_url(3600, force_http=True)
file = urllib.urlopen(url)
assert s1 == file.read(), 'invalid URL %s' % url
+ url = k.generate_url(3600, force_http=True, headers={'x-amz-x-token' : 'XYZ'})
+ file = urllib.urlopen(url)
+ assert s1 == file.read(), 'invalid URL %s' % url
bucket.delete_key(k)
# test a few variations on get_all_keys - first load some data
# for the first one, let's override the content type
« no previous file with comments | « tests/s3/other_cacerts.txt ('k') | tests/s3/test_encryption.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698