| OLD | NEW |
| 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 doctest | 6 import doctest |
| 7 import os | 7 import os |
| 8 import oshelpers | 8 import oshelpers |
| 9 import shutil | 9 import shutil |
| 10 import subprocess | 10 import subprocess |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 self.OpenZipFile() | 181 self.OpenZipFile() |
| 182 self.assertEqual(len(self.zipfile.namelist()), 3) | 182 self.assertEqual(len(self.zipfile.namelist()), 3) |
| 183 | 183 |
| 184 | 184 |
| 185 def main(): | 185 def main(): |
| 186 suite = unittest.TestLoader().loadTestsFromTestCase(TestZip) | 186 suite = unittest.TestLoader().loadTestsFromTestCase(TestZip) |
| 187 suite.addTests(doctest.DocTestSuite(oshelpers)) | 187 suite.addTests(doctest.DocTestSuite(oshelpers)) |
| 188 result = unittest.TextTestRunner(verbosity=2).run(suite) | 188 result = unittest.TextTestRunner(verbosity=2).run(suite) |
| 189 return int(not result.wasSuccessful()) | 189 return int(not result.wasSuccessful()) |
| 190 | 190 |
| 191 |
| 191 if __name__=='__main__': | 192 if __name__=='__main__': |
| 192 sys.exit(main()) | 193 sys.exit(main()) |
| OLD | NEW |