1
Fork 0

Make length allow for ellipsis

This commit is contained in:
Jake Howard 2017-06-09 20:10:09 +01:00
parent 1186c37643
commit 775d517280
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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')), '')