freezer.tests.unit.snapshot.test_lvm module

class freezer.tests.unit.snapshot.test_lvm.Test_lvm_guess(methodName='runTest')

Bases: unittest.case.TestCase

test_no_match()
test_unsing_mount()
test_unsing_proc_mounts()
class freezer.tests.unit.snapshot.test_lvm.Test_lvm_snap(methodName='runTest')

Bases: unittest.case.TestCase

test_already_mounted(mock_create_dir, mock_get_lvm_info, mock_get_vol_fs_type, mock_popen, mock_validate_lvm_params, lvm_snap_remove)
test_ok(mock_create_dir, mock_get_lvm_info, mock_get_vol_fs_type, mock_popen, mock_validate_lvm_params)
test_snapshot_fails(mock_create_dir, mock_get_lvm_info, mock_get_vol_fs_type, mock_popen, mock_validate_lvm_params)
test_snapshot_mount_error_raises_Exception(mock_create_dir, mock_get_lvm_info, mock_get_vol_fs_type, mock_popen, mock_lvm_snap_remove)
test_with_snapshot_opt_simple_sets_correct_path_and_raises_on_perm(mock_create_dir, mock_get_lvm_info)
class freezer.tests.unit.snapshot.test_lvm.Test_lvm_snap_remove(methodName='runTest')

Bases: unittest.case.TestCase

test_return_none_on_success(mock_lvremove, mock_umount, mock_os)
class freezer.tests.unit.snapshot.test_lvm.Test_lvremove(methodName='runTest')

Bases: unittest.case.TestCase

test_raises_on_popen_returncode_not_0(mock_popen)
test_return_none_on_success(mock_popen)
class freezer.tests.unit.snapshot.test_lvm.Test_umount(methodName='runTest')

Bases: unittest.case.TestCase

test_raises_on_popen_returncode_not_0(mock_os, mock_popen)
test_return_none_on_success(mock_os, mock_popen)
class freezer.tests.unit.snapshot.test_lvm.Test_validate_lvm_params(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_raises_Exception_on_no_lvmsrcvol()
test_raises_Exception_on_no_lvmvolgrp()
test_raises_Exception_on_no_pathtobackup()
test_raises_Exception_on_snapperm_invalid()
test_return_false_on_lvm_not_required()
test_return_true_on_lvm_configuration_valid()