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

Method testWritelinesList

Lib/test/test_io/test_fileio.py:136–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 self.assertEqual(n, 4)
135
136 def testWritelinesList(self):
137 l = [b'123', b'456']
138 self.f.writelines(l)
139 self.f.close()
140 self.f = self.FileIO(TESTFN, 'rb')
141 buf = self.f.read()
142 self.assertEqual(buf, b'123456')
143
144 def testWritelinesUserList(self):
145 l = UserList([b'123', b'456'])

Callers

nothing calls this directly

Calls 4

writelinesMethod · 0.45
closeMethod · 0.45
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected