| 1 | #!/usr/bin/env python | 
| 2 | from __future__ import print_function | 
| 3 | """ | 
| 4 | app_deps_test.py: Tests for app_deps.py | 
| 5 | """ | 
| 6 |  | 
| 7 | import sys | 
| 8 | import unittest | 
| 9 |  | 
| 10 | import app_deps  # module under test | 
| 11 |  | 
| 12 |  | 
| 13 | class AppDepsTest(unittest.TestCase): | 
| 14 |  | 
| 15 | def testModules(self): | 
| 16 | pairs = [ | 
| 17 | ('poly.util', 'poly/util.py'), | 
| 18 | ('core.libc', '/git/oil/core/libc.so'), | 
| 19 | ('simplejson', | 
| 20 | '/home/andy/dev/simplejson-2.1.5/simplejson/__init__.py') | 
| 21 | ] | 
| 22 | for mod_type, x, y in app_deps.FilterModules(pairs): | 
| 23 | print(mod_type, x, y) | 
| 24 |  | 
| 25 |  | 
| 26 | if __name__ == '__main__': | 
| 27 | unittest.main() |