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

Method test_path_objects

Lib/test/test_sax.py:410–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

408 b"This was read from a file.")
409
410 def test_path_objects(self):
411 # If the source is a Path object, use it as a system ID and open it.
412 prep = prepare_input_source(FakePath(self.file))
413 self.assertIsNone(prep.getCharacterStream())
414 self.checkContent(prep.getByteStream(),
415 b"This was read from a file.")
416
417 def test_binary_file(self):
418 # If the source is a binary file-like object, use it as a byte

Callers

nothing calls this directly

Calls 6

checkContentMethod · 0.95
prepare_input_sourceFunction · 0.90
FakePathClass · 0.90
assertIsNoneMethod · 0.80
getCharacterStreamMethod · 0.80
getByteStreamMethod · 0.80

Tested by

no test coverage detected