'#13572 - QueryDict with a non-default encoding'

def test_non_default_encoding(self):

    q = QueryDict(str(u'cur=%A4'), encoding=u'iso-8859-15')
    self.assertEqual(q.encoding, u'iso-8859-15')
    self.assertEqual(list(six.iteritems(q)), [(u'cur', u'\u20ac')])
    self.assertEqual(q.urlencode(), u'cur=%A4')
    q = q.copy()
    self.assertEqual(q.encoding, u'iso-8859-15')
    self.assertEqual(list(six.iteritems(q)), [(u'cur', u'\u20ac')])
    self.assertEqual(q.urlencode(), u'cur=%A4')
    self.assertEqual(copy.copy(q).encoding, u'iso-8859-15')
    self.assertEqual(copy.deepcopy(q).encoding, u'iso-8859-15')
