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

Method test_read_image

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

Source from the content-addressed store, hash-verified

582 self.text)
583
584 def test_read_image(self):
585 self.assertEqual(self.image_url_resp.read(), self.image)
586
587 def test_missing_comma(self):
588 self.assertRaises(ValueError,urllib.request.urlopen,'data:text/plain')

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected