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

Method test_expat_attrs_empty

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

Source from the content-addressed store, hash-verified

1066 self._attrs = attrs
1067
1068 def test_expat_attrs_empty(self):
1069 parser = create_parser()
1070 gather = self.AttrGatherer()
1071 parser.setContentHandler(gather)
1072
1073 parser.feed("<doc/>")
1074 parser.close()
1075
1076 self.verify_empty_attrs(gather._attrs)
1077
1078 def test_expat_attrs_wattr(self):
1079 parser = create_parser()

Callers

nothing calls this directly

Calls 5

create_parserFunction · 0.90
verify_empty_attrsMethod · 0.80
setContentHandlerMethod · 0.45
feedMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected