summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/admin_views/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 0cc16509ff..3acbc3d7ed 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -4961,6 +4961,13 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase):
self.assertNotContains(response, "<a>evil</a>", status_code=200)
self.assertContains(response, "&lt;a&gt;evil&lt;/a&gt;", status_code=200)
+ def test_label_suffix_translated(self):
+ pizza = Pizza.objects.create(name='Americano')
+ url = reverse('admin:admin_views_pizza_change', args=(pizza.pk,))
+ with self.settings(LANGUAGE_CODE='fr'):
+ response = self.client.get(url)
+ self.assertContains(response, '<label>Toppings\u00A0:</label>', html=True)
+
@override_settings(ROOT_URLCONF='admin_views.urls')
class LimitChoicesToInAdminTest(TestCase):