def test_dmsetup_is_mocked(self):
        executable_injector = mock.Mock()

        lvsubsystem = lvmlib.LVSubsystem(None, executable_injector)

        self.assertTrue(
            mock.call('/sbin/dmsetup', lvsubsystem.fake_dmsetup)
            in executable_injector.mock_calls
        )