def testCSSTag(self):
        
        pathvar = 'styles/reset.css'
        c = Context({'pathvar': pathvar})
        
        # css tag with string argument
        t = Template(pathvar % '{%% load media %%}{%% css "%s" %%}')
        self.assertEqual(
            t.render(c),
            '<link rel="stylesheet" href="http://localhost/%s" media="screen, projection">' % pathvar)

        # css tag with string argument and explicit media type
        t = Template('{%% load media %%}{%% css "%s" "tv" %%}' % pathvar)
        self.assertEqual(
            t.render(c),
            '<link rel="stylesheet" href="http://localhost/%s" media="tv">' % pathvar)
        
        # css tag with variable argument
        t = Template('{% load media %}{% css pathvar %}')
        self.assertEqual(
            t.render(c),
            '<link rel="stylesheet" href="http://localhost/%s" media="screen, projection">' % pathvar)

        # css tag with variable argument and explicit media type
        t = Template('{% load media %}{% css pathvar "tv" %}')
        self.assertEqual(
            t.render(c),
            '<link rel="stylesheet" href="http://localhost/%s" media="tv">' % pathvar)
dataset/ETHPy150Open sunlightlabs/django-mediasync/mediasync/tests/tests.py/TemplateTagTestCase.testCSSTag/swapped operands of `%`