'Coverage test for SSL connection.'

@mock.patch.object(requests, 'request')
def test_ssl_use(self, request):

    self.configuration.zadara_ssl_cert_verify = True
    self.configuration.zadara_vpsa_use_ssl = True
    self.configuration.driver_ssl_cert_path = '/path/to/cert'
    good_response = mock.MagicMock()
    good_response.status_code = RUNTIME_VARS['status']
    good_response.content = RUNTIME_VARS['login']
    def request_verify_cert(*args, **kwargs):
        self.assertEqual(kwargs['verify'], '/path/to/cert')
        return good_response
    request.side_effect = request_verify_cert
    self.driver.do_setup(None)
