def METHOD_NAME(self):
    """Issue https://github.com/haiwen/seafile/issues/1283
    """
    # create a file in a folder
    self.create_file(repo_id=self.repo.id,
                     parent_dir=self.folder,
                     filename='file.txt',
                     username=self.user.username)
    # share that file
    share_file_info = {
        'username': self.user.username,
        'repo_id': self.repo.id,
        'path': os.path.join(self.folder, 'file.txt'),
        'password': None,
        'expire_date': None,
    }
    fs = FileShare.objects.create_file_link(**share_file_info)
    resp = self.client.get(reverse('view_shared_file', args=[fs.token]))
    self.assertEqual(200, resp.status_code)
    # then delete parent folder, see whether it raises error
    self.remove_folder()
    resp = self.client.get(reverse('view_shared_file', args=[fs.token]))
    self.assertEqual(200, resp.status_code)