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

Method test_basic

Lib/test/test_urllibnet.py:69–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 r.close()
68
69 def test_basic(self):
70 # Simple test expected to pass.
71 with self.urlopen(self.url) as open_url:
72 for attr in ("read", "readline", "readlines", "fileno", "close",
73 "info", "geturl"):
74 self.assertHasAttr(open_url, attr)
75 self.assertTrue(open_url.read(), "calling 'read' failed")
76
77 def test_readlines(self):
78 # Test both readline and readlines.

Callers

nothing calls this directly

Calls 4

urlopenMethod · 0.95
assertHasAttrMethod · 0.80
assertTrueMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected