#NEWLINE# def it_constructs_subclass_based_on_item_type( self , content_types_item_ , rels_item_ , xml_part_ , binary_part_ ) : #NEWLINE# #INDENT# cases = ( ( content_types_item_ , 'ContentTypesPresenter' ) , ( xml_part_ , 'RelsItemPresenter' ) , ( xml_part_ , 'XmlPartPresenter' ) , ( binary_part_ , 'ItemPresenter' ) ) #NEWLINE# for ( pkg_item , expected_type_name ) in cases : #NEWLINE# #INDENT# item_presenter = ItemPresenter ( pkg_item ) #NEWLINE# assert ( type ( item_presenter ) . __name__ == expected_type_name )