MCPcopy
hub / github.com/scrapy/scrapy / test_request_replace

Method test_request_replace

tests/test_utils_request.py:203–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 assert self.function(r2) != self.function(r3)
202
203 def test_request_replace(self):
204 # cached fingerprint must be cleared on request copy
205 r1 = Request("http://www.example.com")
206 fp1 = self.function(r1)
207 r2 = r1.replace(url="http://www.example.com/other")
208 fp2 = self.function(r2)
209 assert fp1 != fp2
210
211 def test_part_separation(self):
212 # An old implementation used to serialize request data in a way that

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.95
RequestClass · 0.90

Tested by

no test coverage detected