testing.unit.test_collections module

class testing.unit.test_collections.CollectionTest(methodName='runTest')[source]

Bases: UnitTestCase

Test collections

get_filelist2_cs()[source]

Return set CollectionsStatus object from filelist 2

setUp()[source]

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

set_gpg_profile()[source]

Set gpg profile to standard “foobar” sym

sig_chains_helper(chains, orphaned_paths)[source]

Test chains and orphaned_paths values for two above tests

sigchain_fileobj_check_list(chain)[source]

Make sure the list of file objects in chain has right contents

The contents of the /tmp/testfiles/collectiontest/remote_dir have to be coordinated with this test.

sigchain_fileobj_get(local)[source]

Return chain, local if local is true with filenames added

test_backup_chains()[source]

Test basic backup chain construction

test_collections_status()[source]

Test CollectionStatus object’s set_values()

test_get_extraneous()[source]

Test the listing of extraneous files

test_get_olderthan()[source]

Test getting list of files older than a certain time

test_sig_chain()[source]

Test a single signature chain

test_sig_chains()[source]

Test making signature chains from filename list

test_sig_chains2()[source]

Test making signature chains from filename list on backend

test_sigchain_fileobj()[source]

Test getting signature chain fileobjs from archive_dir_path