'Invalid cookie content should result in an absent cookie, but not in a
crash while trying to decode it (#23638).'

def test_invalid_unicode_cookie(self):

    environ = RequestFactory().get('/').environ
    environ['HTTP_COOKIE'] = 'x=W\x03c(h]\x8e'
    request = WSGIRequest(environ)
    self.assertIsInstance(request.COOKIES, dict)
