def test_unset_not_set(): t = VariableTracking() t.unset_local("FOO") t.unset_global("BAR") assert (t.is_tracked("FOO")) assert (t.is_tracked("BAR"))
def test_local(): t = VariableTracking() t.ignore_local("FOO") assert (t.is_explicitly_configured_local("FOO")) assert (not t.is_explicitly_configured_global("FOO")) assert (not t.is_tracked("FOO")) t.unset_local("FOO") assert (not t.is_explicitly_configured_local("FOO")) assert (not t.is_explicitly_configured_global("FOO")) assert (t.is_tracked("FOO"))