mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Fixed #29412 -- Stopped marking slugify() result as HTML safe.
This commit is contained in:
parent
861638a307
commit
b004bd62e8
4 changed files with 10 additions and 11 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import json
|
||||
import sys
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.utils import text
|
||||
|
|
@ -179,6 +180,8 @@ class TestUtilsText(SimpleTestCase):
|
|||
)
|
||||
for value, output, is_unicode in items:
|
||||
self.assertEqual(text.slugify(value, allow_unicode=is_unicode), output)
|
||||
# interning the result may be useful, e.g. when fed to Path.
|
||||
self.assertEqual(sys.intern(text.slugify('a')), 'a')
|
||||
|
||||
def test_unescape_entities(self):
|
||||
items = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue