def test_mark_done_problem(pg_xlog, monkeypatch):
 seg = make_segment(1, explicit=False)
 with pytest.raises(exception.UserCritical):
  seg.mark_done()

def test_mark_done_problem ( pg_xlog , monkeypatch ) : seg = make_segment ( 1 , explicit = False ) with pytest . raises ( exception . UserCritical ) : seg . mark_done ( )
check that mark_done fails loudly if status file is missing .