def test_validate_meta_object_invalidates(meta, extra_fields): with pytest.raises(ValidationError): validate_meta_object(meta, allow_extra_meta_fields=extra_fields)
def test_validate_meta_object_validates(meta, extra_fields): result = validate_meta_object(meta, allow_extra_meta_fields=extra_fields) assert result is None