MCPcopy Create free account
hub / github.com/Pylons/webtest / test_writelines

Method test_writelines

tests/test_lint.py:314–320  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 self.flushed = True
313
314 def test_writelines(self):
315 fake_error = self.FakeError()
316 error_wrapper = ErrorWrapper(fake_error)
317 data = [to_bytes('a line'), to_bytes('another line')]
318 error_wrapper.writelines(data)
319 self.assertEqual(fake_error.written, data,
320 "ErrorWrapper should call original writer")
321
322 def test_flush(self):
323 fake_error = self.FakeError()

Callers

nothing calls this directly

Calls 3

writelinesMethod · 0.95
ErrorWrapperClass · 0.90
to_bytesFunction · 0.90

Tested by

no test coverage detected