Skip to content

Commit

Permalink
Fixing new tests and linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
craigloftus committed Mar 16, 2015
1 parent 62e13d7 commit 68fa37f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gcloud/storage/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def _get_all_buckets_non_empty_helper(self, use_default=False):
])
http = conn._http = Http(
{'status': '200', 'content-type': 'application/json'},
'{{"items": [{{"name": "{0}"}}]}}'.format(BUCKET_NAME).encode('utf-8'),
'{{"items": [{{"name": "{0}"}}]}}'.format(BUCKET_NAME)
.encode('utf-8'),
)

if use_default:
Expand Down Expand Up @@ -161,7 +162,7 @@ def test_miss(self):
])
http = conn._http = Http(
{'status': '404', 'content-type': 'application/json'},
'{}',
b'{}',
)
self.assertRaises(NotFound, self._callFUT, NONESUCH, connection=conn)
self.assertEqual(http._called_with['method'], 'GET')
Expand All @@ -183,7 +184,7 @@ def _get_bucket_hit_helper(self, use_default=False):
])
http = conn._http = Http(
{'status': '200', 'content-type': 'application/json'},
'{"name": "%s"}' % BLOB_NAME,
'{{"name": "{0}"}}'.format(BLOB_NAME).encode('utf-8'),
)

if use_default:
Expand Down Expand Up @@ -226,7 +227,7 @@ def _create_bucket_success_helper(self, use_default=False):
])
http = conn._http = Http(
{'status': '200', 'content-type': 'application/json'},
'{"name": "%s"}' % BLOB_NAME,
'{{"name": "{0}"}}'.format(BLOB_NAME).encode('utf-8'),
)

if use_default:
Expand Down

0 comments on commit 68fa37f

Please sign in to comment.