def test_s3_website_errordocument_missing(self):
    bucket_name = ('test-bucket-%s' % short_uid())
    client = self._get_test_client()
    client.create_bucket(Bucket=bucket_name)
    client.put_bucket_website(Bucket=bucket_name, WebsiteConfiguration={'ErrorDocument': {'Key': 'error.html'}})
    url = client.generate_presigned_url('get_object', Params={'Bucket': bucket_name, 'Key': 'nonexistent'})
    response = requests.get(url, verify=False)
    self.assertEqual(response.status_code, 404)
    client.delete_bucket(Bucket=bucket_name)
def test_s3_website_errordocument_missing(self):
    bucket_name = ('test-bucket-%s' % short_uid())
    client = self._get_test_client()
    client.create_bucket(Bucket=bucket_name)
    client.put_bucket_website(Bucket=bucket_name, WebsiteConfiguration={'ErrorDocument': {'Key': 'error.html'}})
    url = client.generate_presigned_url('get_object', Params={'Bucket': bucket_name, 'Key': 'nonexistent'})
    response = requests.get(url, verify=False)
    self.assertEqual(response.status_code, 404)
    client.delete_bucket(Bucket=bucket_name)