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

Method check

Lib/test/test_urlparse.py:1296–1300  ·  view source on GitHub ↗
(str_result, bytes_result)

Source from the content-addressed store, hash-verified

1294
1295 def test_result_encoding_decoding(self):
1296 def check(str_result, bytes_result):
1297 self.assertEqual(str_result.encode(), bytes_result)
1298 self.assertEqual(str_result.encode().geturl(), bytes_result.geturl())
1299 self.assertEqual(bytes_result.decode(), str_result)
1300 self.assertEqual(bytes_result.decode().geturl(), str_result.geturl())
1301
1302 url = 'http://example.com/?#'
1303 burl = url.encode()

Callers

nothing calls this directly

Calls 9

assertEqualMethod · 0.45
encodeMethod · 0.45
geturlMethod · 0.45
decodeMethod · 0.45
copyMethod · 0.45
replaceMethod · 0.45
_replaceMethod · 0.45
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected