def test_Scope_register_str(): scope = Scope() assert not scope.supports(str) scope.register(str) assert scope.supports(str) assert scope.supports("10") assert not scope.supports(int) assert not scope.supports(10) scope.unregister(str) assert not scope.supports(str) assert 'str' not in scope.globals_d()
def test_Scope(): scope = Scope() assert not scope.globals_d()