#NEWLINE# def prepare( ) : #NEWLINE# #INDENT# if MOCK : #NEWLINE# #INDENT# mock_docker ( ) #NEWLINE# #UNINDENT# tasker = DockerTasker ( ) #NEWLINE# workflow = DockerBuildWorkflow ( SOURCE , 'test-image' ) #NEWLINE# setattr ( workflow , 'builder' , X ( ) ) #NEWLINE# setattr ( workflow . builder , 'image_id' , 'asd123' ) #NEWLINE# setattr ( workflow . builder , 'base_image' , ImageName ( repo = 'Fedora' , tag = '21' ) ) #NEWLINE# setattr ( tasker . builder , 'source' , X ( ) ) #NEWLINE# setattr ( workflow . builder . source , 'dockerfile_path' , None ) #NEWLINE# setattr ( workflow . builder . source , 'path' , None ) #NEWLINE# flexmock ( koji , ClientSession = MockedClientSession , PathInfo = MockedPathInfo ) #NEWLINE# return ( tasker , workflow )