def test_fail_remove_all_logical_volumes(self):
        def fake_execute(*args, **kwargs):
            if args in 'vol2':
                raise processutils.ProcessExecutionError('Error')

        with test.nested(
             mock.patch.object(lvm, 'clear_volume'),
             mock.patch.object(libvirt_utils, 'execute',
                  side_effect=fake_execute)) as (mock_clear, mock_execute):
            self.assertRaises(exception.VolumesNotRemoved,
                              lvm.remove_volumes,
                              ['vol1', 'vol2', 'vol3'])
            self.assertEqual(3, mock_execute.call_count)
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/libvirt/storage/test_lvm.py/LvmTestCase.test_fail_remove_all_logical_volumes/swapped operands of `in`