def test_cloudflare_detection_by_server(self): self.response.headers = {self.server: "cloudflare"} self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))
def test_cloudflare_detection_by_server(self): self.response.headers = {self.server: "cloudflare"} self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))
def test_cloudflare_detection_by_headers(self): self.response.headers = {"CF-RAY": None} self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))
def test_cloudflare_detection_by_headers(self): self.response.headers = {"CF-RAY": None} self.assertTrue(WAFApplicationMethods.detect_cloudflare(self.response))