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
1 changed files with 3 additions and 0 deletions

View File

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