#NEWLINE# @ pytest . fixture #NEWLINE# def add_fixture( self , package_ , Image_ , image_ , _find_by_sha1_ , ImagePart_ , image_part_ ) : #NEWLINE# #INDENT# image_parts = _ImageParts ( package_ ) #NEWLINE# image_file = 'foobar.png' #NEWLINE# Image_ . from_file . return_value = image_ #NEWLINE# _find_by_sha1_ . return_value = None #NEWLINE# ImagePart_ . new . return_value = image_part_ #NEWLINE# return ( image_parts , image_file , Image_ , image_ , ImagePart_ , package_ , image_part_ )