'Test specifying the permissions used on the log file.'

def test_specifiedPermissions(self):

    log1 = logfile.LogFile(self.name, self.dir, defaultMode=54)
    self.addCleanup(log1.close)
    mode = stat.S_IMODE(os.stat(self.path)[stat.ST_MODE])
    if runtime.platform.isWindows():
        self.assertEqual(mode, 292)
    else:
        self.assertEqual(mode, 54)
