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

Side by Side Diff: native_client_sdk/src/build_tools/tests/sdktools_commands_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 sys 7 import sys
8 import re 8 import re
9 import tarfile 9 import tarfile
10 import tempfile 10 import tempfile
11 import unittest 11 import unittest
12 from test_sdktools import SdkToolsTestCase 12 from sdktools_test import SdkToolsTestCase
13 13
14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
15 BUILD_TOOLS_DIR = os.path.dirname(SCRIPT_DIR) 15 BUILD_TOOLS_DIR = os.path.dirname(SCRIPT_DIR)
16 TOOLS_DIR = os.path.join(os.path.dirname(BUILD_TOOLS_DIR), 'tools') 16 TOOLS_DIR = os.path.join(os.path.dirname(BUILD_TOOLS_DIR), 'tools')
17 17
18 sys.path.extend([BUILD_TOOLS_DIR, TOOLS_DIR]) 18 sys.path.extend([BUILD_TOOLS_DIR, TOOLS_DIR])
19 import manifest_util 19 import manifest_util
20 import oshelpers 20 import oshelpers
21 21
22 22
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 def testUpdateUnknownBundles(self): 219 def testUpdateUnknownBundles(self):
220 """The update command should ignore unknown bundles and notify the user.""" 220 """The update command should ignore unknown bundles and notify the user."""
221 self._WriteManifest() 221 self._WriteManifest()
222 output = self._Run(['update', 'foobar']) 222 output = self._Run(['update', 'foobar'])
223 self.assertTrue('unknown bundle' in output) 223 self.assertTrue('unknown bundle' in output)
224 224
225 225
226 if __name__ == '__main__': 226 if __name__ == '__main__':
227 sys.exit(unittest.main()) 227 sys.exit(unittest.main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698