Example #1
0
 def test_get_content_titles(self, has_title_set):
     """
     Test that we don't send a title to the LMS for the sequential's tooltips when no title
     is set
     """
     if has_title_set:
         data = {'display_name': 'Custom Title'}
         expected = ['Custom Title']
     else:
         data = {}
         expected = []
     block = MentoringBlock(MagicMock(), DictFieldData(data), Mock())
     self.assertEqual(block.get_content_titles(), expected)
 def test_get_content_titles(self, has_title_set):
     """
     Test that we don't send a title to the LMS for the sequential's tooltips when no title
     is set
     """
     if has_title_set:
         data = {'display_name': 'Custom Title'}
         expected = ['Custom Title']
     else:
         data = {}
         expected = []
     block = MentoringBlock(MagicMock(), DictFieldData(data), Mock())
     self.assertEqual(block.get_content_titles(), expected)