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

Unified Diff: third_party/boto/tests/integration/opsworks/test_layer1.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month 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 | « third_party/boto/tests/integration/mws/test.py ('k') | third_party/boto/tests/integration/rds2/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/tests/integration/opsworks/test_layer1.py
===================================================================
--- third_party/boto/tests/integration/opsworks/test_layer1.py (revision 33376)
+++ third_party/boto/tests/integration/opsworks/test_layer1.py (working copy)
@@ -20,13 +20,15 @@
# IN THE SOFTWARE.
#
import unittest
-import time
from boto.exception import JSONResponseError
+from boto.opsworks import connect_to_region, regions, RegionInfo
from boto.opsworks.layer1 import OpsWorksConnection
class TestOpsWorksConnection(unittest.TestCase):
+ opsworks = True
+
def setUp(self):
self.api = OpsWorksConnection()
@@ -38,3 +40,15 @@
with self.assertRaises(JSONResponseError):
self.api.create_stack('testbotostack', 'us-east-1',
'badarn', 'badarn2')
+
+
+class TestOpsWorksHelpers(unittest.TestCase):
+ opsworks = True
+
+ def test_regions(self):
+ response = regions()
+ self.assertIsInstance(response[0], RegionInfo)
+
+ def test_connect_to_region(self):
+ connection = connect_to_region('us-east-1')
+ self.assertIsInstance(connection, OpsWorksConnection)
« no previous file with comments | « third_party/boto/tests/integration/mws/test.py ('k') | third_party/boto/tests/integration/rds2/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698