def test_positive(self): """Ask for SSL connections to be verified.""" self.assertEqual( client._curl_arg_insecure({'verify': True}), '', )
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 )
def test_null(self): """Do not specify whether SSL connections should be verified.""" self.assertEqual(client._curl_arg_insecure({}), '')