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

Side by Side Diff: third_party/boto/tests/unit/swf/test_layer2_base.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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 import boto.swf.layer2
2 from boto.swf.layer2 import SWFBase
3 from tests.unit import unittest
4 from mock import Mock
5
6
7 MOCK_DOMAIN = 'Mock'
8 MOCK_ACCESS_KEY = 'inheritable access key'
9 MOCK_SECRET_KEY = 'inheritable secret key'
10 MOCK_REGION = 'Mock Region'
11
12
13 class TestBase(unittest.TestCase):
14 """
15 Test for SWFBase.
16 """
17 def setUp(self):
18 boto.swf.layer2.Layer1 = Mock()
19 self.swf_base = SWFBase(
20 domain=MOCK_DOMAIN, aws_access_key_id=MOCK_ACCESS_KEY,
21 aws_secret_access_key=MOCK_SECRET_KEY, region=MOCK_REGION
22 )
23
24 def test_instantiation(self):
25 self.assertEquals(MOCK_DOMAIN, self.swf_base.domain)
26 self.assertEquals(MOCK_ACCESS_KEY, self.swf_base.aws_access_key_id)
27 self.assertEquals(MOCK_SECRET_KEY,
28 self.swf_base.aws_secret_access_key)
29 self.assertEquals(MOCK_REGION, self.swf_base.region)
30 boto.swf.layer2.Layer1.assert_called_with(
31 MOCK_ACCESS_KEY, MOCK_SECRET_KEY, region=MOCK_REGION)
OLDNEW
« no previous file with comments | « third_party/boto/tests/unit/sts/test_connection.py ('k') | third_party/boto/tests/unit/test_connection.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698