def testJSTag(self):

        pathvar = 'scripts/jquery.js'
        c = Context({'pathvar': pathvar})
        
        # js tag with string argument
        t = Template('{%% load media %%}{%% js "%s" %%}' % pathvar)
        self.assertEqual(
            t.render(c),
            '<script src="http://localhost/%s"></script>' % pathvar)
        
        # js tag with variable argument
        t = Template('{% load media %}{% js pathvar %}')
        self.assertEqual(
            t.render(c),
            '<script src="http://localhost/%s"></script>' % pathvar)
dataset/ETHPy150Open sunlightlabs/django-mediasync/mediasync/tests/tests.py/TemplateTagTestCase.testJSTag/original