Exemplo n.º 1
0
 def test_build_header(self):
     xlsdoc = XlsDoc()
     xlsdoc.book_stream_len = 0x1000
     xlsdoc._build_directory()
     xlsdoc._build_sat()
     xlsdoc._build_header()
     self.assertEqual(HEADER, xlsdoc.header)
 def test_build_header(self):
     xlsdoc = XlsDoc()
     xlsdoc.book_stream_len = 0x1000
     xlsdoc._build_directory()
     xlsdoc._build_sat()
     xlsdoc._build_header()
     self.assertEqual(HEADER, xlsdoc.header)
Exemplo n.º 3
0
 def test_build_sat(self):
     xlsdoc = XlsDoc()
     xlsdoc.book_stream_len = 0x1000
     xlsdoc._build_directory()
     xlsdoc._build_sat()
     self.assertEqual(PACKED_SAT, xlsdoc.packed_SAT)
     self.assertEqual(PACKED_MSAT_1ST, xlsdoc.packed_MSAT_1st)
     self.assertEqual(PACKED_MSAT_2ND, xlsdoc.packed_MSAT_2nd)
     self.assertEqual(BOOK_STREAM_SECT, xlsdoc.book_stream_sect)
     self.assertEqual(SAT_SECT, xlsdoc.SAT_sect)
     self.assertEqual(MSAT_SECT_2ND, xlsdoc.MSAT_sect_2nd)
 def test_build_sat(self):
     xlsdoc = XlsDoc()
     xlsdoc.book_stream_len = 0x1000
     xlsdoc._build_directory()
     xlsdoc._build_sat()
     self.assertEqual(PACKED_SAT, xlsdoc.packed_SAT)
     self.assertEqual(PACKED_MSAT_1ST, xlsdoc.packed_MSAT_1st)
     self.assertEqual(PACKED_MSAT_2ND, xlsdoc.packed_MSAT_2nd)
     self.assertEqual(BOOK_STREAM_SECT, xlsdoc.book_stream_sect)
     self.assertEqual(SAT_SECT, xlsdoc.SAT_sect)
     self.assertEqual(MSAT_SECT_2ND, xlsdoc.MSAT_sect_2nd)
Exemplo n.º 5
0
 def test_build_directory(self):
     xlsdoc = XlsDoc()
     xlsdoc.book_stream_len = 0x1000
     xlsdoc._build_directory()
     self.assertEqual(DIR, xlsdoc.dir_stream)
 def test_build_directory(self):
     xlsdoc = XlsDoc()
     xlsdoc.book_stream_len = 0x1000
     xlsdoc._build_directory()
     self.assertEqual(DIR, xlsdoc.dir_stream)