def test_done(self):
    rep = tasks.Repository()
    rep.done(1)
    l = rep.list()
    self.assertEqual(len(l), 1)
    self.assertEqual(l[0].id, 2)
    self.assertEqual(l[0].done, False)
def test_done(self):
    rep = tasks.Repository()
    rep.done(1)
    l = rep.list()
    self.assertEqual(len(l), 1)
    self.assertEqual(l[0].id, 2)
    self.assertEqual(l[0].done, False)