Пример #1
0
 def test_positive(self):
     """Ask for SSL connections to be verified."""
     self.assertEqual(
         client._curl_arg_insecure({'verify': True}),
         '',
     )
Пример #2
0
 def test_negative(self):
     """Ask for SSL connections to not be verified."""
     self.assertEqual(
         client._curl_arg_insecure({'verify': False}),
         '--insecure ',  # there should be trailing whitespace
     )
Пример #3
0
 def test_null(self):
     """Do not specify whether SSL connections should be verified."""
     self.assertEqual(client._curl_arg_insecure({}), '')