def METHOD_NAME(self):
    assert self.fs.get_permissions()['can_download'] is True
    self.fs.permission = FileShare.PERM_VIEW_ONLY
    self.fs.save()
    assert self.fs.get_permissions()['can_download'] is False
    dl_url = reverse('view_shared_file', args=[self.fs.token]) + '?dl=1'
    resp = self.client.get(dl_url)
    self.assertEqual(404, resp.status_code)