def testJSProcessor(self):
        
        try:
            import slimmer
        except __HOLE__:
            self.skipTest("slimmer not installed, skipping test")
        
        content = """var foo = function() {
            alert(1);
        };"""
        
        ct = 'text/javascript'
        procd = self.client.process(content, ct, 'test.js')
        self.assertEqual(procd, 'VAR FOO = FUNCTION(){ALERT(1)};')
dataset/ETHPy150Open sunlightlabs/django-mediasync/mediasync/tests/tests.py/ProcessorTestCase.testJSProcessor