'QueryDicts must be able to handle invalid input encoding (in this
case, bad UTF-8 encoding).'

def test_invalid_input_encoding(self):

    q = QueryDict('foo=bar&foo=\xff')
    self.assertEqual(q['foo'], u'\ufffd')
    self.assertEqual(q.getlist('foo'), [u'bar', u'\ufffd'])
