mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Refs #23919 -- Removed unneeded force_str calls
This commit is contained in:
@@ -3,7 +3,6 @@ import datetime
|
||||
from django.core import signing
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import freeze_time
|
||||
from django.utils.encoding import force_str
|
||||
|
||||
|
||||
class TestSigner(SimpleTestCase):
|
||||
@@ -47,7 +46,7 @@ class TestSigner(SimpleTestCase):
|
||||
for example in examples:
|
||||
signed = signer.sign(example)
|
||||
self.assertIsInstance(signed, str)
|
||||
self.assertNotEqual(force_str(example), signed)
|
||||
self.assertNotEqual(example, signed)
|
||||
self.assertEqual(example, signer.unsign(signed))
|
||||
|
||||
def test_unsign_detects_tampering(self):
|
||||
|
||||
Reference in New Issue
Block a user