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

Method assert_writes

Lib/test/test_apple.py:14–23  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

12 maxDiff = None
13
14 def assert_writes(self, output):
15 self.assertEqual(
16 self.log_write.mock_calls,
17 [
18 call(self.log_level, line)
19 for line in output
20 ]
21 )
22
23 self.log_write.reset_mock()
24
25 def setUp(self):
26 self.log_write = Mock()

Callers 8

test_empty_strMethod · 0.95
test_simple_strMethod · 0.95
test_buffered_strMethod · 0.95
test_manual_flushMethod · 0.95
test_non_asciiMethod · 0.95
test_modified_nullMethod · 0.95
test_nonstandard_strMethod · 0.95

Calls 3

callFunction · 0.70
assertEqualMethod · 0.45
reset_mockMethod · 0.45

Tested by

no test coverage detected