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

def test_alternate_charset_POST(self):

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