class AppleTask(Task): id = 'apple' tests = [ Test(id='01', time=1.0, score=5.0, dat=None, chk=None), Test(id='02', time=1.0, score=5.0, dat=None, chk=None), Test(id='03', time=1.0, score=5.0, dat=None, chk=None), Test(id='04', time=1.0, score=5.0, dat=None, chk=None), Test(id='05', time=1.0, score=5.0, dat=None, chk=None), Test(id='06', time=1.0, score=5.0, dat=None, chk=None), Test(id='07', time=1.0, score=5.0, dat=None, chk=None), Test(id='08', time=1.0, score=5.0, dat=None, chk=None), Test(id='09', time=1.0, score=5.0, dat=None, chk=None), Test(id='10', time=1.0, score=5.0, dat=None, chk=None), Test(id='11', time=1.0, score=5.0, dat=None, chk=None), Test(id='12', time=1.0, score=5.0, dat=None, chk=None), Test(id='13', time=1.0, score=5.0, dat=None, chk=None), Test(id='14', time=1.0, score=5.0, dat=None, chk=None), Test(id='15', time=1.0, score=5.0, dat=None, chk=None), Test(id='16', time=1.0, score=5.0, dat=None, chk=None), Test(id='17', time=1.0, score=5.0, dat=None, chk=None), Test(id='18', time=1.0, score=5.0, dat=None, chk=None), Test(id='19', time=1.0, score=5.0, dat=None, chk=None), Test(id='20', time=1.0, score=5.0, dat=None, chk=None), ] def load_dat(self, stream): return Dat(N=self.read(stream, long)) def load_chk(self, stream): return Chk(X=self.read(stream, long)) def save_dat(self, stream, dat): self.write(stream, dat.N) def load_sol(self, stream): return Sol(X=self.read(stream, long))