MCPcopy Index your code
hub / github.com/python/cpython / test_read_text

Method test_read_text

Lib/test/test_urllib.py:575–577  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

573 self.assertEqual(self.image_url_resp.geturl(), self.image_url)
574
575 def test_read_text(self):
576 self.assertEqual(self.text_url_resp.read().decode(
577 dict(self.text_url_resp.info().get_params())['charset']), self.text)
578
579 def test_read_text_base64(self):
580 self.assertEqual(self.text_url_base64_resp.read().decode(

Callers

nothing calls this directly

Calls 5

get_paramsMethod · 0.80
assertEqualMethod · 0.45
decodeMethod · 0.45
readMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected