def test_is_valid_content_flag_invalid_values(): validator = IncidentFieldValidator('temp_file', check_git=False) validator.current_incident_field = { 'content': False } assert not validator.is_valid_content_flag() assert not validator.is_valid() validator.current_incident_field = { 'something': True } assert not validator.is_valid_content_flag() assert not validator.is_valid()
def test_is_valid_content_flag_sanity(): validator = IncidentFieldValidator('temp_file', check_git=False) validator.current_incident_field = { 'content': True } assert validator.is_valid_content_flag() assert validator.is_valid()