def _validate_children(self):
for child in self._children:<EOL><INDENT>if child.__class__ not in self._allowed_children:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>" % (<EOL>child, self.__class__<EOL>)<EOL>)<EOL><DEDENT><DEDENT>
Check that the children we have are allowed here.