'Tests that a course info module will render its updates, even if they are malformed.'

def test_updates_render(self):

    sample_update_data = [{'id': i, 'date': data, 'content': 'This    is    a    very    important    update!', 'status': CourseInfoModule.STATUS_VISIBLE} for (i, data) in enumerate(['January    1,    1970', 'Marchtober    45,    -1963', 'Welcome!', 'Date    means    "title",    right?'])]
    info_module = CourseInfoModule(Mock(), get_test_system(), DictFieldData({'items': sample_update_data, 'data': ''}), Mock())
    try:
        info_module.get_html()
    except ValueError:
        self.fail('CourseInfoModule    could    not    parse    an    invalid    date!')
