def assertItems(self, *tasks): self.assertEqual(len(tasks), self.viewer.size()) for index, task in enumerate(tasks): self.assertEqual(render.subject(task, recursively=True), self.viewer.widget.GetItemText(index))