'C{writelines} does not add newlines.'

def test_writelinesBuffering(self):

    f = self.observedFile()
    f.writelines(('Hello', ',    ', ''))
    self.assertEqual(f.messages, [])
    f.writelines(('world!\n',))
    self.assertEqual(f.messages, [u'Hello,    world!'])
    f.writelines(("It's    nice    to    meet    you.\n\n", 'Indeed.'))
    self.assertEqual(f.messages, [u'Hello,    world!', u"It's    nice    to    meet    you.", u''])
