1 | #!/usr/bin/python -S
|
2 | from __future__ import print_function
|
3 | """
|
4 | callgraph_test.py: Tests for callgraph.py
|
5 | """
|
6 |
|
7 | import unittest
|
8 | import sys
|
9 |
|
10 | from opy import callgraph # module under test
|
11 | from osh.meta import types
|
12 |
|
13 | lex_mode_e = types.lex_mode_e
|
14 |
|
15 | class CallgraphTest(unittest.TestCase):
|
16 |
|
17 | def testFoo(self):
|
18 | # Figuring out how to inspect ASDL types
|
19 |
|
20 | print(lex_mode_e)
|
21 | print(dir(lex_mode_e))
|
22 | print(lex_mode_e.__module__)
|
23 | print(sys.modules[lex_mode_e.__module__])
|
24 | print(sys.modules[lex_mode_e.__module__].__file__)
|
25 |
|
26 |
|
27 | if __name__ == '__main__':
|
28 | unittest.main()
|