'Don\'t rename config files we don\'t have permission to read.'

def testNoRenameOfReadProtectedFile(self):

    conf = config.CONFIG.MakeNewConfig()
    writeback_file = os.path.join(self.temp_dir, 'writeback.yaml')
    with open(writeback_file, 'w') as f:
        f.write('...')
        f.close()
    os.chmod(writeback_file, stat.S_IWUSR)
    conf.SetWriteBack(writeback_file)
    self.assertTrue(os.path.isfile(writeback_file))
