Package test :: Module test_support :: Class EnvironmentVarGuard |
[hide private]
[frames] | no frames]

# Class EnvironmentVarGuard

source code

    UserDict.DictMixin --+
                         |
                        EnvironmentVarGuard

Class to help protect the environment variable properly. Can be used as a context manager.

Instance Methods | [hide private]
__init__(self) | source code
__getitem__(self, envvar) | source code
__setitem__(self, envvar, value) | source code
__delitem__(self, envvar) | source code
keys(self) | source code
set(self, envvar, value) | source code
unset(self, envvar) | source code
__enter__(self) | source code
__exit__(self, *ignore_exc) | source code
Inherited from `UserDict.DictMixin`: `__cmp__`, `__contains__`, `__iter__`, `__len__`, `__repr__`, `clear`, `get`, `has_key`, `items`, `iteritems`, `iterkeys`, `itervalues`, `pop`, `popitem`, `setdefault`, `update`, `values`