summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_forms.py
diff options
context:
space:
mode:
authorShai Berger <shai@platonix.com>2022-09-01 00:39:08 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-01 21:20:15 +0200
commitfdf0f625216cc5a70d28a3ac9a41f41935f1827c (patch)
tree491da8599c1ac4b1a89826583ad53aab29ebdc89 /tests/auth_tests/test_forms.py
parent974942a75039ba43e618f6a5ff95e08b5d5176fd (diff)
Fixed ReadOnlyPasswordHashWidget's template for RTL languages.
Diffstat (limited to 'tests/auth_tests/test_forms.py')
-rw-r--r--tests/auth_tests/test_forms.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/auth_tests/test_forms.py b/tests/auth_tests/test_forms.py
index ea52254123..98bf264040 100644
--- a/tests/auth_tests/test_forms.py
+++ b/tests/auth_tests/test_forms.py
@@ -1159,14 +1159,13 @@ class ReadOnlyPasswordHashTest(SimpleTestCase):
)
self.assertHTMLEqual(
widget.render("name", value, {"id": "id_password"}),
- """
- <div id="id_password">
- <strong>algorithm</strong>: pbkdf2_sha256
- <strong>iterations</strong>: 100000
- <strong>salt</strong>: a6Pucb******
- <strong>hash</strong>: WmCkn9**************************************
- </div>
- """,
+ '<div id="id_password">'
+ " <strong>algorithm</strong>: <bdi>pbkdf2_sha256</bdi>"
+ " <strong>iterations</strong>: <bdi>100000</bdi>"
+ " <strong>salt</strong>: <bdi>a6Pucb******</bdi>"
+ " <strong>hash</strong>: "
+ " <bdi>WmCkn9**************************************</bdi>"
+ "</div>",
)
def test_readonly_field_has_changed(self):