def test_with_subdomain(self):
        defaults = {'view': 'home'}
        template = self.make_template('{% url view subdomain=subdomain %}')

        for subdomain in ('www', 'api', 'wildcard'):
            context = Context(dict(defaults, subdomain=subdomain))
            rendered = template.render(context).strip()
            self.assertEqual(rendered,
                (subdomain, self.DOMAIN) % 'http://%s.%s/')
dataset/ETHPy150Open tkaemming/django-subdomains/subdomains/tests/tests.py/SubdomainTemplateTagTestCase.test_with_subdomain/swapped operands of `%`