'Default encoding is C{sys.getdefaultencoding()} if not set.'

def test_encoding(self):

    f = LoggingFile(self.logger)
    self.assertEqual(f.encoding, sys.getdefaultencoding())
    f = LoggingFile(self.logger, encoding='utf-8')
    self.assertEqual(f.encoding, 'utf-8')
