OILS / opy / _regtest / src / build / app_deps_test.py View on Github | oilshell.org

27 lines, 16 significant
1#!/usr/bin/env python
2from __future__ import print_function
3"""
4app_deps_test.py: Tests for app_deps.py
5"""
6
7import sys
8import unittest
9
10import app_deps # module under test
11
12
13class 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
26if __name__ == '__main__':
27 unittest.main()