#NEWLINE# @ then ( 'paragraph_format.space_{side} is {value}' ) #NEWLINE# def then_paragraph_format_space_side_is_value( context , side , value ) : #NEWLINE# #INDENT# expected_value = ( None if ( value == 'None' ) else int ( value ) ) #NEWLINE# prop_name = ( 'space_%s' % side ) #NEWLINE# paragraph_format = context . paragraph_format #NEWLINE# actual_value = getattr ( paragraph_format , prop_name ) #NEWLINE# assert ( actual_value == expected_value )