I'm not sure what these asserts are testing. If it just testing that the code doesn't change the HTTP_PROXY env variable, it should
probably do that within the with().