@singledispatch
def assert_student_view_invalid_html(block, html):
 assert False, 'student_view should produce valid html'

@ singledispatch def assert_student_view_invalid_html ( block , html ) : assert False , 'student_view should produce valid html'
asserts that the html generated by the student_view view is correct for the supplied block .