'Some L{LoggingFile} attributes are read-only.'

def test_readOnlyAttributes(self):

    f = LoggingFile(self.logger)
    self.assertRaises(AttributeError, setattr, f, 'closed', True)
    self.assertRaises(AttributeError, setattr, f, 'encoding', 'utf-8')
    self.assertRaises(AttributeError, setattr, f, 'mode', 'r')
    self.assertRaises(AttributeError, setattr, f, 'newlines', ['\n'])
    self.assertRaises(AttributeError, setattr, f, 'name', 'foo')
