def validate(self) -> bool:
<EOL>sum = Decimal(<NUM_LIT:0>)<EOL>for ac in self.asset_classes:<EOL><INDENT>if ac.classes:<EOL><INDENT>child_alloc_sum = ac.child_allocation<EOL>if ac.allocation != child_alloc_sum:<EOL><INDENT>message = f"<STR_LIT>"<EOL>self.logger.warning(message)<EOL>print(message)<EOL>return False<EOL><DEDENT><DEDENT><DEDENT>for ac in self.classes:<EOL><INDENT>sum += ac.allocation<EOL><DEDENT>if sum != Decimal(<NUM_LIT:100>):<EOL><INDENT>message = f"<STR_LIT>"<EOL>self.logger.warning(message)<EOL>print(message)<EOL>return False<EOL><DEDENT>return True<EOL>
Validate that the values match. Incomplete!