#NEWLINE# @ when ( 'I add the stream image {filename} using shapes.add_picture()' ) #NEWLINE# def when_I_add_the_stream_image_filename_using_add_picture( context , filename ) : #NEWLINE# #INDENT# shapes = context . slide . shapes #NEWLINE# with open ( test_image ( shapes ) , 'rb' ) as f : #NEWLINE# #INDENT# stream = BytesIO ( f . read ( ) ) #NEWLINE# #UNINDENT# shapes . add_picture ( stream , Inches ( 1.25 ) , Inches ( 1.25 ) )