def collect(self):
items = super(SpecClass, self).collect()
collected = []
# Replace Instance objects with SpecInstance objects that know how to
# recurse into inner classes.
# TODO: is this ever not a one-item list? Meh.
for item in items:
item = SpecInstance(name=item.name, parent=item.parent)
collected.append(item)
return collected
评论列表
文章目录