Would be better to make the test independent of the current environment vars.
I believe it already is though; just remove the os.environ bit.