def assert_valid(self):
assert self.trntype in TRANSACTION_TYPES,"<STR_LIT>" % TRANSACTION_TYPES<EOL>if self.bank_account_to:<EOL><INDENT>self.bank_account_to.assert_valid()<EOL><DEDENT>
Ensure that fields have valid values