| OLD | NEW |
| 1 # Copyright 2014 The Native Client Authors. All rights reserved. | 1 # Copyright 2014 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import mock | 5 import mock |
| 6 from mock import Mock, patch | 6 from mock import Mock, patch |
| 7 import StringIO | 7 import StringIO |
| 8 import unittest | 8 import unittest |
| 9 | 9 |
| 10 import webports | 10 import webports |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 def test_deps(self): | 112 def test_deps(self): |
| 113 self.assertEqual( | 113 self.assertEqual( |
| 114 find_effected_packages(['ports/hello', 'ports/ruby'], False, None), | 114 find_effected_packages(['ports/hello', 'ports/ruby'], False, None), |
| 115 ['hello', 'ruby', 'ruby-ppapi']) | 115 ['hello', 'ruby', 'ruby-ppapi']) |
| 116 | 116 |
| 117 # The common dependencies of vim and nano should only appear once in this | 117 # The common dependencies of vim and nano should only appear once in this |
| 118 # list. | 118 # list. |
| 119 self.assertEqual( | 119 self.assertEqual( |
| 120 find_effected_packages(['ports/hello', 'ports/ruby'], True, None), | 120 find_effected_packages(['ports/hello', 'ports/ruby'], True, None), |
| 121 ['hello', 'corelibs', 'glibc-compat', 'ncurses', 'readline', 'zlib', | 121 ['hello', 'corelibs', 'gtest', 'glibc-compat', 'ncurses', 'readline', |
| 122 'ruby', 'libtar', 'nacl-spawn', 'ruby-ppapi']) | 122 'zlib', 'ruby', 'libtar', 'nacl-spawn', 'ruby-ppapi']) |
| 123 | 123 |
| 124 def test_filter(self): | 124 def test_filter(self): |
| 125 effected = find_effected_packages(['ports/corelibs'], True, | 125 effected = find_effected_packages(['ports/corelibs'], True, |
| 126 ['corelibs', 'glibc-compat']) | 126 ['corelibs', 'glibc-compat']) |
| 127 self.assertEqual(effected, ['corelibs', 'glibc-compat']) | 127 self.assertEqual(effected, ['corelibs', 'glibc-compat']) |
| OLD | NEW |