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

Unified Diff: tests/gcl_unittest.py

Issue 3473003: Add automated sys.stdout check. (Closed)
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/gclient_scm_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gcl_unittest.py
diff --git a/tests/gcl_unittest.py b/tests/gcl_unittest.py
index 8da6c1e84eee0484bbe255bddc88a26f227573dd..fa05cc366915ea205570d54927339ad56072dfdf 100755
--- a/tests/gcl_unittest.py
+++ b/tests/gcl_unittest.py
@@ -258,6 +258,9 @@ class CMDuploadUnittest(GclTestsBase):
self.mox.ReplayAll()
gcl.CMDupload(['naame', '-r', 'georges@example.com'])
+ self.checkstdout('*** Upload does not submit a try; use gcl try to submit '
+ 'a try. ***\n'
+ '*** Upload does not submit a try; use gcl try to submit a try. ***\n')
def testServerOverride(self):
change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription',
@@ -290,6 +293,9 @@ class CMDuploadUnittest(GclTestsBase):
self.mox.ReplayAll()
gcl.CMDupload(['naame', '--server=a', '--no_watchlists'])
+ self.checkstdout('*** Upload does not submit a try; use gcl try to submit '
+ 'a try. ***\n'
+ '*** Upload does not submit a try; use gcl try to submit a try. ***\n')
def testNormal(self):
change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription',
@@ -324,6 +330,9 @@ class CMDuploadUnittest(GclTestsBase):
gcl.CMDupload(['naame', '--no_watchlists'])
self.assertEquals(change_info.issue, 1)
self.assertEquals(change_info.patchset, 2)
+ self.checkstdout('*** Upload does not submit a try; use gcl try to submit '
+ 'a try. ***\n'
+ '*** Upload does not submit a try; use gcl try to submit a try. ***\n')
def testNoServer(self):
self.mox.StubOutWithMock(gcl.sys, 'stderr')
« no previous file with comments | « no previous file | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698