MCPcopy
hub / github.com/scrapinghub/splash / assertNotRedirected

Method assertNotRedirected

splash/tests/test_redirects.py:117–120  ·  view source on GitHub ↗
(self, resp)

Source from the content-addressed store, hash-verified

115 self.assertIn("JS REDIRECT TARGET", resp.text)
116
117 def assertNotRedirected(self, resp):
118 self.assertStatusCode(resp, 200)
119 self.assertNotIn("JS REDIRECT TARGET", resp.text)
120 self.assertIn("Redirecting", resp.text)
121
122 def test_redirect_nowait(self):
123 r = self.request({'url': self.mockurl('jsredirect')})

Calls 1

assertStatusCodeMethod · 0.80

Tested by

no test coverage detected