def test_persistence_of_empty_jobs(): """Storing empty jobs.""" job = Job() with pytest.raises(ValueError): yield from job.save()