'Test PEP476 certificate opt_out fix.'

@mock.patch.object(client, 'RestResult')
@mock.patch.object(client.urllib.request, 'Request')
@mock.patch.object(client.urllib.request, 'urlopen')
@mock.patch.object(client, 'ssl', new_callable=FakeSSL)
def test_ssl_with_context(self, _ssl, _urlopen, _Request, _RestResult):

    path = '/api/storage/v1/pools'
    _urlopen.return_value = mock.Mock()
    self.client.request(path, mock.ANY)
    _urlopen.assert_called_once_with(mock.ANY, timeout=self.timeout, context='fakecontext')
