#NEWLINE# @ pytest . fixture #NEWLINE# def from_xml_fixture( self ) : #NEWLINE# #INDENT# entries = ( ( 'Default' , 'xml' , CT . XML ) , ( 'Default' , 'PNG' , CT . PNG ) , ( 'Override' , '/ppt/presentation.xml' , CT . PML_PRESENTATION_MAIN ) ) #NEWLINE# content_types_xml = self . _xml_from ( entries ) #NEWLINE# expected_defaults = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# expected_overrides = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for entry in entries : #NEWLINE# #INDENT# if ( entry [ 0 ] == 'Default' ) : #NEWLINE# #INDENT# ext = entry [ 1 ] . lower ( ) #NEWLINE# content_type = entry [ 2 ] #NEWLINE# expected_defaults [ ext ] = content_type #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( entry [ 0 ] == 'Override' ) : #NEWLINE# #INDENT# ( partname , content_type ) = entry [ 1 : ] #NEWLINE# expected_overrides [ partname ] = content_type #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ( content_types_xml , expected_defaults , expected_overrides )