Find the top level namespace.
(node)
| 292 | return suite |
| 293 | |
| 294 | def find_root(node): |
| 295 | """Find the top level namespace.""" |
| 296 | # Scamper up to the top level namespace |
| 297 | while node.type != syms.file_input: |
| 298 | node = node.parent |
| 299 | if not node: |
| 300 | raise ValueError("root found before file_input node was found.") |
| 301 | return node |
| 302 | |
| 303 | def does_tree_import(package, name, node): |
| 304 | """ Returns true if name is imported from package at the |
no outgoing calls
no test coverage detected