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:
parent
bd8deeccd5
commit
e8649ae368
@ -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é!')
|
||||
|
Loading…
Reference in New Issue
Block a user