              self.assertEqual(o, signing.loads(signing.dumps(o, compress=True)))
  
      def test_decode_detects_tampering(self):
          "loads should raise exception for tampered objects"
          transforms = (
              lambda s: s.upper(),
 
</s> remove * The default :class:`django.core.signing.Signer` algorithm is changed to the
  SHA-256. Support for signatures made with the old SHA-1 algorithm remains
  until Django 4.0.
 </s> add * The default algorithm of :class:`django.core.signing.Signer`,
  :meth:`django.core.signing.loads`, and :meth:`django.core.signing.dumps` is
  changed to the SHA-256. Support for signatures made with the old SHA-1
  algorithm remains until Django 4.0. </s> remove     Returns URL-safe, sha1 signed base64 compressed JSON string. Serialized
    object is signed using :class:`~TimestampSigner`.
 </s> add     Returns URL-safe, signed base64 compressed JSON string. Serialized object
    is signed using :class:`~TimestampSigner`.
    def test_dumps_loads_legacy_signature(self):
        # RemovedInDjango40Warning: pre-Django 3.1 signatures won't be
        # supported.
        value = 'a string \u2020'
        signed = signing.dumps(value, algorithm='sha1')
        self.assertEqual(signing.loads(signed), value)

              self.assertEqual(o, signing.loads(signing.dumps(o, compress=True)))
  
    def test_dumps_loads_legacy_signature(self):
        # RemovedInDjango40Warning: pre-Django 3.1 signatures won't be
        # supported.
        value = 'a string \u2020'
        signed = signing.dumps(value, algorithm='sha1')
        self.assertEqual(signing.loads(signed), value)

      def test_decode_detects_tampering(self):
          "loads should raise exception for tampered objects"
          transforms = (
              lambda s: s.upper(),
keep add keep keep keep keep
 Refs #27468 -- Added tests and release notes for signing.dumps()/loads() changes.

Follow up to 71c4fb7beb8e3293243140e4bd74e53989196440. 
tests/signing/tests.py