@mock.patch('cloudbaseinit.metadata.services.osconfigdrive.windows.'
                'WindowsConfigDriveManager.'
                '_get_config_drive_files')
    def _test_get_config_drive_files(self, mock_get_config_drive_files,
                                     found=True):
        check_types = ["iso", "vfat"] if found else []
        check_locations = ["cdrom", "hdd", "partition"]
        product = list(itertools.product(check_types, check_locations))
        product_calls = [mock.call(cd_type, cd_location)
                         for cd_type, cd_location in product]
        mock_get_config_drive_files.side_effect = \
            [False] * (1 - len(product_calls)) + [True]
        expected_log = ["Looking for Config Drive %(type)s in %(location)s" %
                        {"type": cd_type, "location": cd_location}
                        for cd_type, cd_location in product]

        with self.snatcher:
            response = self._config_manager.get_config_drive_files(
                check_types, check_locations)
        mock_get_config_drive_files.assert_has_calls(product_calls)
        self.assertEqual(expected_log, self.snatcher.output)
        self.assertEqual(found, response)
dataset/ETHPy150Open openstack/cloudbase-init/cloudbaseinit/tests/metadata/services/osconfigdrive/test_windows.py/TestWindowsConfigDriveManager._test_get_config_drive_files/swapped operands of `-`