def report(self, format=ReportFormat.printout, output_path=None): """ Returns a report of this class. :param format: The format of the report. :param output_path: The path to the file the report is written to. If None, then the report is not written to a file. :returns: The decendants of the account. """ rpt = GlsRpt(self, output_path) return rpt.render(format)
def report(self, format=ReportFormat.printout, output_path=None): """ Returns a report of this class. :param format: The format of the report. :param output_path: The path to the file the report is written to. If None, then the report is not written to a file. :returns: The descendants of the account. """ rpt = GlsRpt(self, output_path) return rpt.render(format)
class GeneralLedgerStructureUnitTester(unittest.TestCase): """ Tester for the auxi.modelling.financial.reporting.GeneralLedgerStructure class. """ def setUp(self): gls = Gls("NameA") self.object = GeneralLedgerStructure( data_source=gls, output_path=None) def test__generate_table_(self): table = self.object._generate_table_() self.assertEqual(table[0], ["Type", "Number", "Name", "Description"]) # The general leger has 27 accounts self.assertEqual(len(table), 28)
def setUp(self): gls = Gls("NameA") self.object = GeneralLedgerStructure( data_source=gls, output_path=None)