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

Side by Side Diff: native_client_sdk/src/tools/tests/httpd_test.py

Issue 11571032: [NaCl SDK] cleanup python unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import Queue 7 import Queue
8 import sys 8 import sys
9 import subprocess 9 import subprocess
10 import threading 10 import threading
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 def testPostFail(self): 102 def testPostFail(self):
103 args = self._GetChromeMockArgs('fail', 'post', sleep=10) 103 args = self._GetChromeMockArgs('fail', 'post', sleep=10)
104 returncode, stdout, _ = self._Run(args, timeout=20) 104 returncode, stdout, _ = self._Run(args, timeout=20)
105 self.assertEqual(1, returncode) 105 self.assertEqual(1, returncode)
106 self.assertTrue('Starting' in stdout) 106 self.assertTrue('Starting' in stdout)
107 self.assertTrue('Expected to be killed' not in stdout) 107 self.assertTrue('Expected to be killed' not in stdout)
108 108
109 109
110 if __name__ == '__main__': 110 if __name__ == '__main__':
111 unittest.main() 111 unittest.main()
OLDNEW
« no previous file with comments | « native_client_sdk/src/tools/quote.py ('k') | native_client_sdk/src/tools/tests/oshelpers_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698