'Test a POST with non-utf-8 payload encoding.'

def test_alternate_charset_POST(self):

    payload = FakePayload(urlencode({'key': 'Espa\xc3\xb1a'.encode('latin-1')}))
    request = WSGIRequest({'REQUEST_METHOD': 'POST', 'CONTENT_LENGTH': len(payload), 'CONTENT_TYPE': 'application/x-www-form-urlencoded;    charset=iso-8859-1', 'wsgi.input': payload})
    self.assertEqual(request.POST, {'key': ['Espa\xc3\xb1a']})
