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

def test_non_default_encoding(self):

    q = QueryDict('sbb=one', encoding='rot_13')
    self.assertEqual(q.encoding, 'rot_13')
    self.assertEqual(q.items(), [(u'foo', u'bar')])
    self.assertEqual(q.urlencode(), 'sbb=one')
    q = q.copy()
    self.assertEqual(q.encoding, 'rot_13')
    self.assertEqual(q.items(), [(u'foo', u'bar')])
    self.assertEqual(q.urlencode(), 'sbb=one')
    self.assertEqual(copy.copy(q).encoding, 'rot_13')
    self.assertEqual(copy.deepcopy(q).encoding, 'rot_13')
