mirror of https://github.com/django/django.git
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