Lines Matching refs:tobuf
195 fobj.write(tarfile.TarInfo("foo").tobuf())
1358 data = tarfile.TarInfo("foo").tobuf()
1362 data = tarfile.TarInfo("foo").tobuf()
1374 tarinfo.tobuf(tarfile.USTAR_FORMAT)
1378 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1382 tarinfo.tobuf(tarfile.USTAR_FORMAT)
1386 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1390 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1395 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1400 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1404 tarinfo.tobuf(tarfile.GNU_FORMAT)
1408 tarinfo.tobuf(tarfile.GNU_FORMAT)
1413 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.GNU_FORMAT)
1417 tarinfo.tobuf(tarfile.PAX_FORMAT)
1421 tarinfo.tobuf(tarfile.PAX_FORMAT)
1425 tarinfo.tobuf(tarfile.PAX_FORMAT)
1555 data = bz2.compress(tarfile.TarInfo("foo").tobuf())