def test_return_false_on_lvm_not_required(self): self.assertTrue(lvm.validate_lvm_params(self.backup_opt))
def test_return_true_on_lvm_configuration_valid(self): self.backup_opt.lvm_srcvol = '' self.backup_opt.lvm_volgroup = '' self.assertFalse(lvm.validate_lvm_params(self.backup_opt))