Tests set_environ will set environ values and will restore the environ.
(env_name, value)
| 963 | ), |
| 964 | ) |
| 965 | def test_set_environ(env_name, value): |
| 966 | """Tests set_environ will set environ values and will restore the environ.""" |
| 967 | environ_copy = copy.deepcopy(os.environ) |
| 968 | with set_environ(env_name, value): |
| 969 | assert os.environ.get(env_name) == value |
| 970 | |
| 971 | assert os.environ == environ_copy |
| 972 | |
| 973 | |
| 974 | def test_set_environ_raises_exception(): |
nothing calls this directly
no test coverage detected