The freezer.tests.integration.test_rsync_backup Module

class freezer.tests.integration.test_rsync_backup.TestBackupFSLocalRsync(methodName='runTest')[source]

Bases: freezer.tests.integration.common.TestFS

test_backup_multiple_level()[source]
  • use the default source and destination trees in /tmp (see common.TestFS)
  • use temporary directory for backup storage
  • add some random data
  • check that trees don’t match anymore
  • execute block based backup of source tree
  • modify data
  • execute backup again
  • delete some files
  • execute backup again
  • execute restore into destination tree
  • check that source and destination trees match
Returns:non on success
test_backup_single_file()[source]
  • use the default source and destination trees in /tmp (see common.TestFS)
  • use temporary directory for backup storage
  • add one file with random data
  • check that trees don’t match anymore
  • execute block based backup of single file
  • execute restore into destination tree
  • check that source and destination trees match
Returns:non on success
test_backup_single_level()[source]
  • use the default source and destination trees in /tmp (see common.TestFS)
  • use temporary directory for backup storage
  • add some random data
  • check that trees don’t match anymore
  • execute block based backup of source tree
  • execute restore into destination tree
  • check that source and destination trees match
Returns:non on success