@then('the {sides} crop is {value}')
def then_the_sides_crop_is_value(context, sides, value):
    side_prop_names = {
        'top and bottom': ('crop_top',  'crop_bottom'),
        'left and right': ('crop_left', 'crop_right'),
    }[sides]
    expected_value = float(value)
    placeholder_picture = context.placeholder
    for prop_name in side_prop_names:
        value = getattr(placeholder_picture, prop_name)
        difference = abs(expected_value - value)
        assert difference < 0.000002, (value, prop_name) % 'got %s for %s'
dataset/ETHPy150Open scanny/python-pptx/features/steps/placeholder.py/then_the_sides_crop_is_value/swapped operands of `%`