#NEWLINE# @ then ( 'text_frame.auto_size is {value}' ) #NEWLINE# def then_text_frame_autosize_is_value( context , value ) : #NEWLINE# #INDENT# expected_value = { #NEWLINE# #INDENT# 'None' : None , #NEWLINE# 'MSO_AUTO_SIZE.NONE' : MSO_AUTO_SIZE . NONE , #NEWLINE# 'MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT' : MSO_AUTO_SIZE . SHAPE_TO_FIT_TEXT , #NEWLINE# 'MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE' : MSO_AUTO_SIZE . TEXT_TO_FIT_SHAPE , #NEWLINE# #UNINDENT# } [ value ] #NEWLINE# text_frame = context . text_frame #NEWLINE# assert ( text_frame . auto_size == expected_value ) , ( 'got %s' % expected_value . auto_size )