'Permission errors are not swallowed'

def test_readonly_root(self):

    os.chmod(temp_storage.location, 320)
    try:
        self.obj.testfile.save('foo.txt', SimpleUploadedFile('foo.txt', 'x'))
    except OSError as err:
        self.assertEqual(err.errno, errno.EACCES)
    except Exception as err:
        self.fail(('OSError    [Errno    %s]    not    raised.' % errno.EACCES))
