testing.unit.test_diffdir module

class testing.unit.test_diffdir.DDTest(methodName='runTest')[source]

Bases: UnitTestCase

Test functions in diffdir.py

copyfileobj(infp, outfp)[source]

Copy in fileobj to out, closing afterwards

empty_diff_schema(dirname)[source]

Given directory name, make sure can tell when nothing changes

setUp()[source]

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

test_combine_path_iters()[source]

Test diffdir.combine_path_iters

test_diff()[source]

Test making a diff

test_diff2()[source]

Another diff test - this one involves multivol support (requires rdiff to be installed to pass)

test_dirdelta_write_sig()[source]

Test simultaneous delta and sig generation

Generate signatures and deltas of dirs1, 2, 3, 4 and compare those produced by DirDelta_WriteSig and other methods.

test_empty_diff()[source]

Test producing a diff against same sig; should be len 0

test_empty_diff2()[source]

Test producing diff against directories of special files

testsig()[source]

Test producing tar signature of various file types

testing.unit.test_diffdir.compare_tar(tarfile1, tarfile2)[source]

Compare two tarfiles

testing.unit.test_diffdir.tarinfo_eq(ti1, ti2)[source]