@pytest.fixture(scope='function')
def save_environ():
    old_env = copy.deepcopy(os.environ)
    (yield)
    os.environ = old_env
@pytest.fixture(scope='function')
def save_environ():
    old_env = copy.deepcopy(os.environ)
    (yield)
    os.environ = old_env