def test_mark_done(pg_xlog):
 seg = make_segment(1, explicit=False)
 pg_xlog.touch(seg.name, '.ready')
 seg.mark_done()

def test_mark_done ( pg_xlog ) : seg = make_segment ( 1 , explicit = False ) pg_xlog . touch ( seg . name , '.ready' ) seg . mark_done ( )
check non-explicit segments can be .