#NEWLINE# @ then ( 'the text frame\'s {side} margin is {inches}"' ) #NEWLINE# def then_text_frame_margin_is_value( context , side , inches ) : #NEWLINE# #INDENT# text_frame = context . prs . slides [ 0 ] . shapes [ 0 ] . text_frame #NEWLINE# emu = Inches ( float ( inches ) ) #NEWLINE# if ( side == 'left' ) : #NEWLINE# #INDENT# assert ( text_frame . margin_left == emu ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( side == 'top' ) : #NEWLINE# #INDENT# assert ( text_frame . margin_top == emu ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( side == 'right' ) : #NEWLINE# #INDENT# assert ( text_frame . margin_right == emu ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( side == 'bottom' ) : #NEWLINE# #INDENT# assert ( text_frame . margin_bottom == emu )