OILS / build / dynamic_deps_test.py View on Github | oilshell.org

23 lines, 15 significant
1#!/usr/bin/env python2
2from __future__ import print_function
3
4import unittest
5
6import dynamic_deps # module under test
7
8
9class 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
22if __name__ == '__main__':
23 unittest.main()