def testMediaURLTag(self):
        
        pathvar = 'images/logo.png'
        c = Context({'pathvar': pathvar})
        
        # base media url
        t = Template('{% load media %}{% media_url %}')
        self.assertEqual(t.render(c), "http://localhost")
        
        # media url with string argument
        t = Template(pathvar % '{%% load media %%}{%% media_url "%s" %%}')
        self.assertEqual(t.render(c), "http://localhost/images/logo.png")
        
        # media url with variable argument
        t = Template('{% load media %}{% media_url pathvar %}')
        self.assertEqual(t.render(c), "http://localhost/images/logo.png")
dataset/ETHPy150Open sunlightlabs/django-mediasync/mediasync/tests/tests.py/TemplateTagTestCase.testMediaURLTag/swapped operands of `%`