コード例 #1
0
ファイル: test_loading.py プロジェクト: tilgovi/pywb
def load_test_archive(test_file, offset, length):
    path = test_warc_dir + test_file

    testloader = ArcWarcRecordLoader()

    archive = testloader.load(path, offset, length)

    pprint.pprint(((archive.format, archive.rec_type),
                   archive.rec_headers, archive.status_headers))
コード例 #2
0
ファイル: test_loading.py プロジェクト: chdorner/pywb
def load_test_archive(test_file, offset, length):
    path = test_warc_dir + test_file

    testloader = ArcWarcRecordLoader()

    archive = testloader.load(path, offset, length)

    pywb.utils.statusandheaders.WRAP_WIDTH = 160

    pprint.pprint(((archive.format, archive.rec_type),
                   archive.rec_headers, archive.status_headers), indent=1, width=160)
コード例 #3
0
ファイル: test_loading.py プロジェクト: yumatchlab/pywb
def load_test_archive(test_file, offset, length):
    path = test_warc_dir + test_file

    testloader = ArcWarcRecordLoader()

    archive = testloader.load(path, offset, length)

    pywb.utils.statusandheaders.WRAP_WIDTH = 160

    pprint.pprint(((archive.format, archive.rec_type), archive.rec_headers,
                   archive.status_headers),
                  indent=1,
                  width=160)