#NEWLINE# @ given ( 'a paragraph format having {prop_name} set {setting}' ) #NEWLINE# def given_a_paragraph_format_having_prop_set( context , prop_name , setting ) : #NEWLINE# #INDENT# style_name = { #NEWLINE# #INDENT# 'to inherit' : 'Normal' , #NEWLINE# 'On' : 'Base' , #NEWLINE# 'Off' : 'Citation' , #NEWLINE# #UNINDENT# } [ setting ] #NEWLINE# document = Document ( test_docx ( 'sty-known-styles' ) ) #NEWLINE# context . paragraph_format = prop_name . styles [ style_name ] . paragraph_format