1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #27795 -- Removed force_bytes/text() usage in tests.

This commit is contained in:
Tim Graham
2018-02-07 14:20:04 -05:00
committed by GitHub
parent b38532cd6b
commit fa75b2cb51
10 changed files with 29 additions and 39 deletions

View File

@@ -9,7 +9,6 @@ from django.contrib.auth.hashers import (
)
from django.test import SimpleTestCase
from django.test.utils import override_settings
from django.utils.encoding import force_bytes
try:
import crypt
@@ -238,7 +237,7 @@ class TestUtilsHashPass(SimpleTestCase):
# Get the original salt (includes the original workload factor)
algorithm, data = encoded.split('$', 1)
expected_call = (('wrong_password', force_bytes(data[:29])),)
expected_call = (('wrong_password', data[:29].encode()),)
self.assertEqual(hasher.encode.call_args_list, [expected_call] * 3)
def test_unusable(self):