def test_auto_chmod_OK(self):
    'Do not chmod files that have mode private_files_permission.'
    self.stat.return_value.st_mode = 33152
    tools.file_mode_checker(self.file, mode=384)
    self.stat.assert_called_with(self.file)
    self.assertFalse(self.chmod.called)
Do not chmod files that have mode private_files_permission.
def test_auto_chmod_OK(self):
    
    self.stat.return_value.st_mode = 33152
    tools.file_mode_checker(self.file, mode=384)
    self.stat.assert_called_with(self.file)
    self.assertFalse(self.chmod.called)