testing.unit.test_patchdir module

class testing.unit.test_patchdir.CollateItersTest(methodName='runTest')[source]

Bases: UnitTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_collate()[source]

Test collate_iters function

test_tuple()[source]

Test indexed tuple

test_tuple_assignment()[source]
class testing.unit.test_patchdir.PatchingTest(methodName='runTest')[source]

Bases: UnitTestCase

Test patching

copyfileobj(infp, outfp)[source]

Copy in fileobj to out, closing afterwards

get_sel(path)[source]

Get selection iter over the given directory

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_block_tar()[source]

Test building block tar from a number of files

test_doubledot_hole()[source]

Test for the .. bug that lets tar overwrite parent dir

test_total()[source]

Test cycle on dirx

total_sequence(filelist)[source]

Test signatures, diffing, and patching on directory list

class testing.unit.test_patchdir.TestInnerFuncs(methodName='runTest')[source]

Bases: UnitTestCase

Test some other functions involved in patching

check_output()[source]

Make {0}/testfiles/output exists

deleted()[source]

Make a deleted ROPath

delta1()[source]

Make a delta ROPath, permissions 0o640

delta2()[source]

Make another delta ROPath, permissions 0o644

get_delta(old_buf, new_buf)[source]

Return delta buffer from old to new

setUp()[source]

Hook method for setting up the test fixture before exercising it.

snapshot()[source]

Make a snapshot ROPath, permissions 0o600

test_normalize()[source]

Test normalizing a sequence of diffs

test_patch_seq2ropath()[source]

Test patching sequence

class testing.unit.test_patchdir.index(index)[source]

Bases: object

Used below to test the iter collation

__init__(index)[source]