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

Side by Side Diff: chrome/test/pyautolib/pyauto_utils_test.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 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
« no previous file with comments | « chrome/test/pyautolib/pyauto_utils.py ('k') | chrome/test/pyautolib/remote_host.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 #!/usr/bin/python 1 #!/usr/bin/env python
2 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
4 # 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
5 # found in the LICENSE file. 4 # found in the LICENSE file.
6 5
7 """Tests for pyauto_utils.""" 6 """Tests for pyauto_utils."""
8 7
9 import glob 8 import glob
10 import os 9 import os
11 import shutil 10 import shutil
12 import tempfile 11 import tempfile
13 import unittest 12 import unittest
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 r = pyauto_utils.ExistingPathReplacer(mydir) 77 r = pyauto_utils.ExistingPathReplacer(mydir)
79 self.assertEqual(2, len(os.listdir(self._workdir))) 78 self.assertEqual(2, len(os.listdir(self._workdir)))
80 self.assertFalse(os.path.isfile(myfile)) 79 self.assertFalse(os.path.isfile(myfile))
81 del r 80 del r
82 self.assertEqual(1, len(os.listdir(self._workdir))) 81 self.assertEqual(1, len(os.listdir(self._workdir)))
83 self.assertTrue(os.path.isfile(myfile)) 82 self.assertTrue(os.path.isfile(myfile))
84 83
85 84
86 if __name__ == '__main__': 85 if __name__ == '__main__':
87 unittest.main() 86 unittest.main()
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyauto_utils.py ('k') | chrome/test/pyautolib/remote_host.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698