Make test_proxy work independent of env vars
Make test_proxy work independent of env vars

test.unit.common.test_internal_client.TestSimpleClient.test_proxy
will fail if the environment has http_proxy set and does not have
no_proxy=127.0.0.1 set. This seems to be because urllib overrides
any proxy arg passed to the Request with the env http_proxy var,
unless the Request host is in no_proxy.

We don't need to test urllib, so this patch changes the test to
simply ensure that swift code does pass the correct proxy arg to
urllib2.urlopen. That avoids testers having to make sure their
env vars are compliant to successfully run unit tests. While it is
reasonable to think that 127.0.0.1 is in the no_proxy list, it
shouldn't be a requirement pass swift tests.

Change-Id: Iff91acdb76fabe7056b3e90e2756e27fe5105817

dencaval/swift,hbhdytf/mac2,smerritt/swift,psachin/swift,hbhdytf/mac2,daasbank/swift,rackerlabs/swift,hurricanerix/swift,openstack/swift,prashanthpai/swift,notmyname/swift,bradleypj823/swift,hbhdytf/mac,gold3bear/swift,openstack/swift,revoer/keystone-8.0.0,redbo/swift,larsbutler/swift,bradleypj823/swift,psachin/swift,matthewoliver/swift,mjwtom/swift,swiftstack/swift,dencaval/swift,redhat-openstack/swift,hbhdytf/mac,thiagodasilva/swift,swiftstack/swift,shibaniahegde/OpenStak_swift,bkolli/swift,clayg/swift,openstack/swift,Akanoa/swift,notmyname/swift,smerritt/swift,gold3bear/swift,matthewoliver/swift,hurricanerix/swift,levythu/swift,smerritt/swift,mjwtom/swift,matthewoliver/swift,thiagodasilva/swift,matthewoliver/swift,nadeemsyed/swift,Em-Pan/swift,psachin/swift,notmyname/swift,tipabu/swift,notmyname/swift,takeshineshiro/swift,aerwin3/swift,hurricanerix/swift,Em-Pan/swift,williamthegrey/swift,swiftstack/swift,tipabu/swift,aerwin3/swift,bouncestorage/swift,levythu/swift,revoer/keystone-8.0.0,clayg/swift,smerritt/swift,nadeemsyed/swift,hbhdytf/mac2,bouncestorage/swift,tipabu/swift,mjzmjz/swift,nadeemsyed/swift,redhat-openstack/swift,hbhdytf/mac2,clayg/swift,tipabu/swift,rackerlabs/swift,bkolli/swift,larsbutler/swift,williamthegrey/swift,redbo/swift,clayg/swift,psachin/swift,Akanoa/swift,nadeemsyed/swift,mjzmjz/swift,hurricanerix/swift,prashanthpai/swift,takeshineshiro/swift,shibaniahegde/OpenStak_swift,daasbank/swift,openstack/swift