#NEWLINE# @ then ( 'paragraph_format.alignment is {value}' ) #NEWLINE# def then_paragraph_format_alignment_is_value( context , value ) : #NEWLINE# #INDENT# expected_value = { #NEWLINE# #INDENT# 'None' : None , #NEWLINE# 'WD_ALIGN_PARAGRAPH.LEFT' : WD_ALIGN_PARAGRAPH . LEFT , #NEWLINE# 'WD_ALIGN_PARAGRAPH.CENTER' : WD_ALIGN_PARAGRAPH . CENTER , #NEWLINE# 'WD_ALIGN_PARAGRAPH.RIGHT' : WD_ALIGN_PARAGRAPH . RIGHT , #NEWLINE# #UNINDENT# } [ value ] #NEWLINE# paragraph_format = context . paragraph_format #NEWLINE# assert ( paragraph_format . alignment == expected_value )