testing.functional package

Submodules

Module contents

exception testing.functional.CmdError(code)[source]

Bases: Exception

Indicates an error running an external command

__init__(code)[source]
class testing.functional.FunctionalTestCase(methodName='runTest')[source]

Bases: DuplicityTestCase

classmethod _check_setsid()[source]
_setsid_w = None
backup(type, input_dir, options=[], **kwargs)[source]

Run duplicity backup to default directory

cleanup(options=[])[source]

Run duplicity cleanup to default directory

get_backend_files()[source]
make_largefiles(count=3, size=2)[source]

Makes a number of large files in /tmp/testfiles/largefiles that each are the specified number of megabytes.

restore(file_to_restore=None, time=None, options=[], **kwargs)[source]
run_duplicity(options=[], current_time=None, fail=None, passphrase_input=[])[source]

Run duplicity binary with given arguments and options

setUp()[source]

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

verify(dirname, file_to_verify=None, time=None, options=[], **kwargs)[source]