MCPcopy
hub / github.com/scrapy/scrapy / assertQueryEqual

Method assertQueryEqual

tests/test_http_request_form.py:33–36  ·  view source on GitHub ↗
(self, first, second, msg=None)

Source from the content-addressed store, hash-verified

31 request_class = FormRequest # type: ignore[assignment]
32
33 def assertQueryEqual(self, first, second, msg=None):
34 first = to_unicode(first).split("&")
35 second = to_unicode(second).split("&")
36 assert sorted(first) == sorted(second), msg
37
38 def test_empty_formdata(self):
39 r1 = self.request_class("http://www.example.com", formdata={})

Calls 1

to_unicodeFunction · 0.90

Tested by

no test coverage detected