def test_sax_nomina11_01_from_file_ok(self): path_xml = './tests/Resources/nomina11_01.xml' transformer = ct.TSaxNomina11() result_columns = transformer.to_columns_from_file(path_xml) self.assertFalse(result_columns is None) self.assertTrue(len(result_columns) == 1) self.assertTrue(len(result_columns[0]) == 438)
def test_sax_nomina11_get_column_names_ok(self): transformer = ct.TSaxNomina11() result_columns = transformer.get_column_names() self.assertFalse(result_columns is None) self.assertTrue(len(result_columns) == 438) self.assertFalse(result_columns[0] == 'FOLIO') self.assertTrue(result_columns[12] == 'FORMAPAGO') self.assertTrue(result_columns[36] == 'CURPRECEPTOR')