예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)