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

Method setUp

Lib/test/test_apple.py:25–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.log_write.reset_mock()
24
25 def setUp(self):
26 self.log_write = Mock()
27 self.log_level = 42
28 self.log = SystemLog(self.log_write, self.log_level, errors="replace")
29
30 def test_repr(self):
31 self.assertEqual(repr(self.log), "<SystemLog (level 42)>")

Callers

nothing calls this directly

Calls 2

MockClass · 0.90
SystemLogClass · 0.90

Tested by

no test coverage detected