From 04536e5c5ff47ecc8ca964959efa670f920ec701 Mon Sep 17 00:00:00 2001 From: arbisoft Date: Thu, 22 Aug 2019 16:22:58 +0500 Subject: [PATCH] BOM-388 Fixing list len issue. --- cms/djangoapps/contentstore/views/tests/test_item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/views/tests/test_item.py b/cms/djangoapps/contentstore/views/tests/test_item.py index 46220b78d3..0b15e57a2b 100644 --- a/cms/djangoapps/contentstore/views/tests/test_item.py +++ b/cms/djangoapps/contentstore/views/tests/test_item.py @@ -2277,8 +2277,8 @@ class TestComponentTemplates(CourseTestCase): """ self._verify_basic_component("discussion", "Discussion") self._verify_basic_component("video", "Video") - self.assertGreater(self.get_templates_of_type('html'), 0) - self.assertGreater(self.get_templates_of_type('problem'), 0) + self.assertGreater(len(self.get_templates_of_type('html')), 0) + self.assertGreater(len(self.get_templates_of_type('problem')), 0) self.assertIsNone(self.get_templates_of_type('advanced')) # Now fully disable video through XBlockConfiguration