

def test_upload_object_via_stream_existing_object(self):

    def dummy_content_type(name):
        return ('application/zip', None)
    old_func = libcloud.storage.drivers.atmos.guess_file_mime_type
    libcloud.storage.drivers.atmos.guess_file_mime_type = dummy_content_type
    container = Container(name='fbc', extra={
        
    }, driver=self)
    object_name = 'ftsde'
    iterator = DummyIterator(data=['2', '3', '5'])
    try:
        self.driver.upload_object_via_stream(container=container, object_name=object_name, iterator=iterator)
    finally:
        libcloud.storage.drivers.atmos.guess_file_mime_type = self

dataset/ETHPy150Open apache/libcloud/libcloud/test/storage/test_atmos.py AtmosTests.test_upload_object_via_stream_existing_object/VarMisuse@128/188 `old_func`->`self`