<s> import logging <EOL> import uuid <EOL> import zope <EOL> import inspect <EOL> from imgfac . CloudDelegate import CloudDelegate <EOL> class MockCloud ( object ) : <EOL> zope . interface . implements ( CloudDelegate ) <EOL> def __init__ ( self ) : <EOL> self . log = logging . getLogger ( '<STR_LIT>' % ( __name__ , self . __class__ . __name__ ) ) <EOL> def push_image_to_provider ( self , builder , provider , credentials , target , target_image , parameters ) : <EOL> self . log . info ( '<STR_LIT>' % ( inspect . stack ( ) [ <NUM_LIT:1> ] [ <NUM_LIT:3> ] ) ) <EOL> builder . provider_image . identifier_on_provider = str ( uuid . uuid4 ( ) ) <EOL> builder . provider_image . provider_account_identifier = '<STR_LIT>' <EOL> def snapshot_image_on_provider ( self , builder , provider , credentials , target , template , parameters ) : <EOL> self . log . info ( '<STR_LIT>' % ( inspect . stack ( ) [ <NUM_LIT:1> ] [ <NUM_LIT:3> ] ) ) <EOL> builder . provider_image . identifier_on_provider = str ( uuid . uuid4 ( ) ) <EOL> builder . provider_image . provider_account_identifier = '<STR_LIT>' <EOL> def builder_should_create_target_image ( self , builder , target , image_id , template , parameters ) : <EOL> self . log . info ( '<STR_LIT>' % ( inspect . stack ( ) [ <NUM_LIT:1> ] [ <NUM_LIT:3> ] ) ) <EOL> return True <EOL> def builder_will_create_target_image ( self , builder , target , image_id , template , parameters ) : <EOL> self . log . info ( '<STR_LIT>' % ( inspect . stack ( ) [ <NUM_LIT:1> ] [ <NUM_LIT:3> ] ) ) <EOL> def builder_did_create_target_image ( self , builder , target , image_id , template , parameters ) : <EOL> self . log . info ( '<STR_LIT>' % ( inspect . stack ( ) [ <NUM_LIT:1> ] [ <NUM_LIT:3> ] ) ) <EOL> def delete_from_provider ( self , builder , provider , credentials , target , parameters ) : <EOL> self . log . info ( '<STR_LIT>' % ( inspect . stack ( ) [ <NUM_LIT:1> ] [ <NUM_LIT:3> ] ) ) </s>
