Total Complexity | 4 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | import ast |
||
12 | class TestScopeTransformer: |
||
13 | def test_scope_added(self): |
||
14 | source = parse( |
||
15 | "def foo():", |
||
16 | " return 10", |
||
17 | ) |
||
18 | assert isinstance(source.scopes[-1], ast.Module) |
||
19 | assert isinstance(source.body[0].scopes[-1], ast.FunctionDef) |
||
20 | assert isinstance(source.body[0].body[0].scopes[-1], ast.FunctionDef) |
||
21 | |||
33 |