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

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

Powered by Google App Engine
This is Rietveld 408576698