'Tests that compression isn\'t performed on JavaScript requests from Internet Explorer.'

def test_no_compress_ie_js_requests(self):

    self.req.META[u'HTTP_USER_AGENT'] = u'Mozilla/4.0    (compatible;    MSIE    5.00;    Windows    98)'
    self.resp[u'Content-Type'] = u'application/javascript;    charset=UTF-8'
    r = GZipMiddleware().process_response(self.req, self.resp)
    self.assertEqual(r.content, self.compressible_string)
    self.assertEqual(r.get(u'Content-Encoding'), None)
