'Overriding the FILE_UPLOAD_PERMISSIONS setting should be reflected in
the file_permissions_mode attribute of
django.core.files.storage.default_storage.'

def test_override_file_upload_permissions(self):

    self.assertIsNone(default_storage.file_permissions_mode)
    with self.settings(FILE_UPLOAD_PERMISSIONS=511):
        self.assertEqual(default_storage.file_permissions_mode, 511)
