def test_create_validate(title, body): with pytest.raises(ValidationError): entry = Entry(title=title, body=body) entry.full_clean()