@mock.patch('validator.validate.validate')
    def test_upload_sideload_addon(self, validate_mock):
        validate_mock.return_value = json.dumps(amo.VALIDATOR_SKELETON_RESULTS)
        self.url = reverse('devhub.upload_sideload')
        data = open(get_image_path('animated.png'), 'rb')
        self.client.post(self.url, {'upload': data})
        # Make sure it was called with listed=False.
        assert not validate_mock.call_args[1]['listed']
        # No automated signing for sideload add-ons.
        assert FileUpload.objects.get().automated_signing is False
Sideload addons are validated as "self-hosted" addons.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_views_validation.py/TestValidateAddon.test_upload_sideload_addon