#NEWLINE# def test_invoice_total_with_tax_integrity( self ) : #NEWLINE# #INDENT# invoice_entries = DocumentEntryFactory . create_batch ( 5 ) #NEWLINE# invoice = InvoiceFactory . create ( invoice_entries = invoice_entries ) #NEWLINE# invoice . sales_tax_percent = Decimal ( '20.00' ) #NEWLINE# assert ( invoice . total == ( invoice . total_before_tax + invoice . tax_value ) )