0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Added test for FlatPage.__str__().

This commit is contained in:
Mads Jensen 2017-10-12 08:56:05 -04:00 committed by Tim Graham
parent bd8deeccd5
commit e8649ae368

View File

@ -14,3 +14,6 @@ class FlatpageModelTests(SimpleTestCase):
@override_script_prefix('/prefix/')
def test_get_absolute_url_honors_script_prefix(self):
self.assertEqual(self.page.get_absolute_url(), '/prefix/caf%C3%A9/')
def test_str(self):
self.assertEqual(str(self.page), '/café/ -- Café!')