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

Method test_base_class_methods_called

Lib/test/test_htmlparser.py:1242–1246  ·  view source on GitHub ↗
(self, super_reset_method, super_init_method)

Source from the content-addressed store, hash-verified

1240 @patch("_markupbase.ParserBase.__init__")
1241 @patch("_markupbase.ParserBase.reset")
1242 def test_base_class_methods_called(self, super_reset_method, super_init_method):
1243 with patch('_markupbase.ParserBase') as parser_base:
1244 EventCollector()
1245 super_init_method.assert_called_once()
1246 super_reset_method.assert_called_once()
1247
1248
1249if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

patchFunction · 0.90
EventCollectorClass · 0.85
assert_called_onceMethod · 0.80

Tested by

no test coverage detected