'Proxy should be skipped when so specified...'

@attr(requires='core_integration')
def test_proxy_skip(self):

    proxies = {'http': 'http://localhost:3128', 'https': 'http://localhost:3128', 'no': '127.0.0.1,localhost,169.254.169.254,host.foo.bar'}
    gen_proxies = config_proxy_skip(proxies, 's3://anything', skip_proxy=True)
    self.assertEquals(gen_proxies.get('http'), None)
    self.assertEquals(gen_proxies.get('https'), None)
    gen_proxies = config_proxy_skip(proxies, 'https://host.foo.bar', skip_proxy=False)
    self.assertEquals(gen_proxies.get('http'), None)
    self.assertEquals(gen_proxies.get('https'), None)
    gen_proxies = config_proxy_skip(proxies, 'baz', skip_proxy=False)
    self.assertEquals(proxies, gen_proxies)
    proxies.pop('no')
    gen_proxies = config_proxy_skip(proxies, 'baz', skip_proxy=False)
    self.assertEquals(proxies, gen_proxies)
