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

Side by Side Diff: third_party/gsutil/gslib/tests/test_gsutil.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 # -*- coding: utf-8 -*-
2 # Copyright 2013 Google Inc. All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 """Integration tests for top-level gsutil command."""
16
17 from __future__ import absolute_import
18
19 import gslib
20 import gslib.tests.testcase as testcase
21
22
23 class TestGsUtil(testcase.GsUtilIntegrationTestCase):
24 """Integration tests for top-level gsutil command."""
25
26 def test_long_version_arg(self):
27 stdout = self.RunGsUtil(['--version'], return_stdout=True)
28 self.assertEqual('gsutil version: %s\n' % gslib.VERSION, stdout)
29
30 def test_version_command(self):
31 stdout = self.RunGsUtil(['version'], return_stdout=True)
32 self.assertEqual('gsutil version: %s\n' % gslib.VERSION, stdout)
33
34 def test_version_long(self):
35 stdout = self.RunGsUtil(['version', '-l'], return_stdout=True)
36 self.assertIn('gsutil version: %s\n' % gslib.VERSION, stdout)
37 self.assertIn('boto version', stdout)
38 self.assertIn('checksum', stdout)
39 self.assertIn('config path', stdout)
40 self.assertIn('gsutil path', stdout)
OLDNEW
« no previous file with comments | « third_party/gsutil/gslib/tests/test_file_part.py ('k') | third_party/gsutil/gslib/tests/test_hash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698