'indexing course without content groups added test'

def test_content_group_not_assigned(self):

    with patch((settings.SEARCH_ENGINE + '.index')) as mock_index:
        self.reindex_course(self.store)
        self.assertTrue(mock_index.called)
        indexed_content = self._get_index_values_from_call_args(mock_index)
        self.assertIn(self._html_nogroup_result(self.html_unit1), indexed_content)
        mock_index.reset_mock()
