Make length allow for ellipsis
This commit is contained in:
parent
1186c37643
commit
775d517280
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ class IndexPageTestCase(TestCase):
|
|||
self.assertIsNotNone(row.find('section', class_='box'))
|
||||
self.assertTrue(self.client.exists(row.find('a').attrs['href']))
|
||||
self.assertNotEqual(self.get_children(row.find('p')), '')
|
||||
self.assertLessEqual(len(self.get_children(row.find('p'))), self.settings['params']['summary_length'])
|
||||
self.assertLessEqual(len(self.get_children(row.find('p'))), self.settings['params']['summary_length'] + 3)
|
||||
self.assertNotEqual(self.get_children(row.find('h3')), '')
|
||||
|
||||
|
|
Loading…
Reference in a new issue