OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 subprocess | 7 import subprocess |
8 import unittest | 8 import unittest |
9 | 9 |
10 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 10 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
11 | 11 |
12 class ShowMeTheModulesTest(unittest.TestCase): | 12 class ShowMeTheModulesTest(unittest.TestCase): |
13 def testShowMeTheModules(self): | 13 def testShowMeTheModules(self): |
14 scriptPath = os.path.join(BASE_DIR, 'show_me_the_modules.py') | 14 scriptPath = os.path.join(BASE_DIR, 'recipes.py') |
15 exitcode = subprocess.call(['python', scriptPath]) | 15 exitcode = subprocess.call(['python', scriptPath, 'show_me_the_modules']) |
16 self.assertEqual(0, exitcode) | 16 self.assertEqual(0, exitcode) |
17 | 17 |
18 if __name__ == '__main__': | 18 if __name__ == '__main__': |
19 unittest.TestCase.maxDiff = None | 19 unittest.TestCase.maxDiff = None |
20 unittest.main() | 20 unittest.main() |
OLD | NEW |