def METHOD_NAME(self):
    invoice = self._create_invoice(payment_mode=self.payment_mode)
    payment_term_line = invoice._get_payment_term_lines()
    self.assertEqual(payment_term_line.account_id, self.receivable_account2)