#NEWLINE# def _assert_condition( condition , message ) : #NEWLINE# #INDENT# "Asserts a validation condition and raises an error if it's not met.\n\n  Args:\n    condition: (boolean) condition to enforce\n    message: error message\n\n  Raises:\n    ValidationError: if condition is not met\n  " #NEWLINE# if ( not condition ) : #NEWLINE# #INDENT# raise ValidationError ( message )