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

Side by Side Diff: third_party/boto/tests/unit/ecs/test_connection.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 # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the
5 # "Software"), to deal in the Software without restriction, including
6 # without limitation the rights to use, copy, modify, merge, publish, dis-
7 # tribute, sublicense, and/or sell copies of the Software, and to permit
8 # persons to whom the Software is furnished to do so, subject to the fol-
9 # lowing conditions:
10 #
11 # The above copyright notice and this permission notice shall be included
12 # in all copies or substantial portions of the Software.
13 #
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
17 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 # IN THE SOFTWARE.
21 #
22
23 from tests.unit import unittest
24 from boto.ecs import ECSConnection
25 from tests.unit import AWSMockServiceTestCase
26
27
28 class TestECSConnection(AWSMockServiceTestCase):
29 connection_class = ECSConnection
30
31 def default_body(self):
32 return """
33 <Items>
34 <Request>
35 <IsValid>True</IsValid>
36 <ItemLookupRequest>
37 <ItemId>B00008OE6I</ItemId>
38 </ItemLookupRequest>
39 </Request>
40 <Item>
41 <ASIN>B00008OE6I</ASIN>
42 <ItemAttributes>
43 <Manufacturer>Canon</Manufacturer>
44 <ProductGroup>Photography</ProductGroup>
45 <Title>Canon PowerShot S400 4MP Digital Camera w/ 3x Optical Zoo m</Title>
46 </ItemAttributes>
47 </Item>
48 </Items>
49 """
50
51 def test_item_lookup(self):
52 self.set_http_response(status_code=200)
53 item_set = self.service_connection.item_lookup(
54 ItemId='0316067938',
55 ResponseGroup='Reviews'
56 )
57
58 self.assert_request_parameters(
59 {'ItemId': '0316067938',
60 'Operation': 'ItemLookup',
61 'ResponseGroup': 'Reviews',
62 'Service': 'AWSECommerceService'},
63 ignore_params_values=['Version', 'AWSAccessKeyId',
64 'SignatureMethod', 'SignatureVersion',
65 'Timestamp'])
66
67 items = list(item_set)
68 self.assertEqual(len(items), 1)
69 self.assertTrue(item_set.is_valid)
70 self.assertEqual(items[0].ASIN, 'B00008OE6I')
OLDNEW
« no previous file with comments | « third_party/boto/tests/unit/ecs/__init__.py ('k') | third_party/boto/tests/unit/emr/test_connection.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698