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.EnvController(**kwargs)[source]

Bases: object

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

Bases: DuplicityTestCase

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

Run duplicity backup to default directory

backup_with_failure(type, input_dir, failure_type, failure_condition, error_code, options=None, PYDEVD=None, **kwargs)[source]

using _testbackent to trigger certain failure conditions. See backends/_testbackend.py for possible trigger

cleanup(options=None)[source]

Run duplicity cleanup to default directory

collection_status(options=None)[source]

Run duplicity collection-status 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=None, **kwargs)[source]
run_duplicity(options=None, current_time=None, fail=None, passphrase_input=None, timeout=None)[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=None, **kwargs)[source]