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

Class MockFile

Lib/test/test_xml_etree_c.py:130–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 self.assertRaises(ValueError, parser.close)
129 self.assertRaises(ValueError, parser.feed, 'foo')
130 class MockFile:
131 def read(*args):
132 return ''
133 self.assertRaises(ValueError, parser._parse_whole, MockFile())
134 self.assertRaises(ValueError, parser._setevents, None)
135 self.assertIsNone(parser.entity)

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…