diff --git a/tests/ncz_test.py b/tests/ncz_test.py index 106f1a0d..1c451b2e 100644 --- a/tests/ncz_test.py +++ b/tests/ncz_test.py @@ -88,6 +88,25 @@ class UnpackTest(unittest.TestCase): def expected(self): return pfs0([(self.name + '.nca', self.nca), ('a.tik', self.tik)]) + def padded_nsz(self, indices, truncate=False): + """Store selected blocks raw, followed by padding included in the stored length, not the NCA body.""" + def pad(data): + head = ncz.HEADER + 16 + 0x40 * len(SECTIONS) + exponent = data[head + 11] + count = struct.unpack_from('