def test_remove_verify_none(self): input_kwargs = {'item': 'one', 'auth': self.auth, 'verify': None} result = conduct_request.enrich_args(self.host, **input_kwargs) expected_result = { 'item': 'one', 'headers': { 'Host': self.host }, 'auth': self.auth } self.assertEqual(expected_result, result)
def test_remove_verify_none(self): input_kwargs = { 'item': 'one', 'auth': self.auth, 'verify': None } result = conduct_request.enrich_args(self.host, **input_kwargs) expected_result = { 'item': 'one', 'headers': {'Host': self.host}, 'auth': self.auth } self.assertEqual(expected_result, result)
def test_append_host_header(self): input_kwargs = { 'item': 'one', 'auth': self.auth, 'verify': self.verify } result = conduct_request.enrich_args(self.host, **input_kwargs) expected_result = { 'item': 'one', 'headers': {'Host': self.host}, 'auth': self.auth, 'verify': self.verify } self.assertEqual(expected_result, result)
def test_append_host_header(self): input_kwargs = { 'item': 'one', 'auth': self.auth, 'verify': self.verify } result = conduct_request.enrich_args(self.host, **input_kwargs) expected_result = { 'item': 'one', 'headers': { 'Host': self.host }, 'auth': self.auth, 'verify': self.verify } self.assertEqual(expected_result, result)