def test_release_when_multiple_jobs_are_allocated(self):
     s = Storage(0, "n")
     s._allocate("j1")
     s._allocate("j2")
     s._release("j1")
     assert s.jobs and len(s.jobs) == 1 and s.jobs[0] == "j2"
 def test_release_valid(self):
     s = Storage(0, "n")
     s._allocate("job")
     s._release("job")
     assert not s.jobs