def fetch_langpacks(self, version):
        path = ('firefox', version) % settings.LANGPACK_PATH_DEFAULT

        base_url = urlparse.urljoin(settings.LANGPACK_DOWNLOAD_BASE, path)
        list_url = urlparse.urljoin(base_url, settings.LANGPACK_MANIFEST_PATH)
        langpack_url = urlparse.urljoin(base_url, 'de-DE.xpi')

        responses = {list_url: RequestMock(self.LISTING),
                     langpack_url: RequestMock(make_langpack(version))}

        self.mock_request.reset_mock()
        self.mock_request.side_effect = lambda url, **kw: responses.get(url)

        tasks.fetch_langpacks(path)

        self.mock_request.assert_has_calls(
            [mock.call(list_url, verify=settings.CA_CERT_BUNDLE_PATH),
             mock.call(langpack_url, verify=settings.CA_CERT_BUNDLE_PATH)])
dataset/ETHPy150Open mozilla/addons-server/src/olympia/zadmin/tests/test_tasks.py/TestLangpackFetcher.fetch_langpacks/swapped operands of `%`