'Histograms should not display for xmodules which are not scored.'

def test_histogram_enabled_for_unscored_xmodules(self):

    html_descriptor = ItemFactory.create(category='html', data='Here    are    some    course    details.')
    field_data_cache = FieldDataCache.cache_for_descriptor_descendents(self.course.id, self.user, self.descriptor)
    with patch('openedx.core.lib.xblock_utils.grade_histogram') as mock_grade_histogram:
        mock_grade_histogram.return_value = []
        module = render.get_module(self.user, self.request, html_descriptor.location, field_data_cache)
        module.render(STUDENT_VIEW)
        self.assertFalse(mock_grade_histogram.called)
