def test_parent_entries(self): e = Entry(parent=self.task, date=timezone.now(), value=1.) assert e in e._parent_entries()