示例#1
0
 def test_set_fuzzing_type_for_data_fuzzing_on_body(self):
     return_expected = DATA_FUZZING
     test_body = f"user={FUZZING_MARK}&pass={FUZZING_MARK}"
     requester = Requester("https://test-url.com/", body=test_body)
     returned_data = requester._set_fuzzing_type()
     self.assertIsInstance(returned_data, int)
     self.assertEqual(returned_data, return_expected)
     self.assertEqual(requester.is_data_fuzzing(), True)
示例#2
0
 def test_set_fuzzing_type_for_data_fuzzing_on_headers(self):
     return_expected = DATA_FUZZING
     test_header = {'Cookie': f"TESTSESSID={FUZZING_MARK}"}
     requester = Requester("https://test-url.com/", headers=test_header)
     returned_data = requester._set_fuzzing_type()
     self.assertIsInstance(returned_data, int)
     self.assertEqual(returned_data, return_expected)
     self.assertEqual(requester.is_data_fuzzing(), True)
示例#3
0
 def test_set_fuzzing_type_for_data_fuzzing_on_url_params(self):
     return_expected = DATA_FUZZING
     test_url = f"https://test-url.com/?q={FUZZING_MARK}"
     requester = Requester(test_url)
     returned_data = requester._set_fuzzing_type()
     self.assertIsInstance(returned_data, int)
     self.assertEqual(returned_data, return_expected)
     self.assertEqual(requester.is_data_fuzzing(), True)