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