#NEWLINE# @ classmethod #NEWLINE# def create( cls , name ) : #NEWLINE# #INDENT# def run_test( self ) : #NEWLINE# #INDENT# docx_path = self . get_path_to_fixture ( ( '%s.docx' % name ) ) #NEWLINE# expected_path = self . get_path_to_fixture ( ( '%s.html' % name ) ) #NEWLINE# expected = '' #NEWLINE# with open ( expected_path ) as f : #NEWLINE# #INDENT# expected = f . read ( ) #NEWLINE# #UNINDENT# expected = ( BASE_HTML % expected ) #NEWLINE# result = self . convert_docx_to_html ( docx_path ) #NEWLINE# self . assertHtmlEqual ( result , expected ) #NEWLINE# #UNINDENT# return run_test