def METHOD_NAME(self):
    try:
        raise BadUploadUrl('foo')
    except BadUploadUrl as e:
        assert not e.should_retry_http()
        assert e.should_retry_upload()
        assert str(e) == 'Bad upload url: foo', str(e)