def test_compose_wo_content_type_set(self):
    SOURCE_1 = 'source-1'
    SOURCE_2 = 'source-2'
    DESTINATION = 'destinaton'
    connection = _Connection()
    client = _Client(connection)
    bucket = _Bucket(client=client)
    source_1 = self._make_one(SOURCE_1, bucket=bucket)
    source_2 = self._make_one(SOURCE_2, bucket=bucket)
    destination = self._make_one(DESTINATION, bucket=bucket)
    with self.assertRaises(ValueError):
        destination.compose(sources=[source_1, source_2])
def test_compose_wo_content_type_set(self):
    SOURCE_1 = 'source-1'
    SOURCE_2 = 'source-2'
    DESTINATION = 'destinaton'
    connection = _Connection()
    client = _Client(connection)
    bucket = _Bucket(client=client)
    source_1 = self._make_one(SOURCE_1, bucket=bucket)
    source_2 = self._make_one(SOURCE_2, bucket=bucket)
    destination = self._make_one(DESTINATION, bucket=bucket)
    with self.assertRaises(ValueError):
        destination.compose(sources=[source_1, source_2])