Beispiel #1
0
 def test_set_name_offset(self):
     sect = UnpreparedElfSection(None, "test")
     self.assertEqual(hasattr(sect, "name_offset"), False) # FIMXE: is this really what we want to check
     sect = sect.prepare(0, 0, 5)
     self.assertEqual(sect.name_offset, 5)
     sect.name_offset = 25
     self.assertEqual(sect.name_offset, 25)