def upload(self, view, **kw):
        FileUpload.objects.all().delete()
        self.run_validator.reset_mock()

        fpath = 'src/olympia/files/fixtures/files/validation-error.xpi'

        with open(fpath) as file_:
            resp = self.client.post(reverse(view, kwargs=kw),
                                    {'upload': file_})
            assert resp.status_code == 302
        self.file_upload = FileUpload.objects.get()
Returns the URL to stop the slice
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_views_validation.py/TestUploadURLs.upload--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/clearinghouse/slice/models.py/Slice.get_stop_url