def test_invalid_range_error(self):
    bucket_name = ('range-%s' % short_uid())
    self.s3_client.create_bucket(Bucket=bucket_name)
    self.s3_client.create_bucket(Bucket=bucket_name)
    self.s3_client.put_object(Bucket=bucket_name, Key='steve', Body=b'is awesome')
    try:
        self.s3_client.get_object(Bucket=bucket_name, Key='steve', Range='bytes=1024-4096')
    except ClientError as e:
        self.assertEqual(e.response['Error']['Code'], 'InvalidRange')
    self._delete_bucket(bucket_name, ['steve'])
def test_invalid_range_error(self):
    bucket_name = ('range-%s' % short_uid())
    self.s3_client.create_bucket(Bucket=bucket_name)
    self.s3_client.create_bucket(Bucket=bucket_name)
    self.s3_client.put_object(Bucket=bucket_name, Key='steve', Body=b'is awesome')
    try:
        self.s3_client.get_object(Bucket=bucket_name, Key='steve', Range='bytes=1024-4096')
    except ClientError as e:
        self.assertEqual(e.response['Error']['Code'], 'InvalidRange')
    self._delete_bucket(bucket_name, ['steve'])