#NEWLINE# @ istest #NEWLINE# def can_overwrite_existing_style_map( ) : #NEWLINE# #INDENT# fileobj = _normal_docx ( ) #NEWLINE# write_style_map ( fileobj , 'p => h1' ) #NEWLINE# write_style_map ( fileobj , 'p => h2' ) #NEWLINE# with open_zip ( fileobj , 'r' ) as zip_file : #NEWLINE# #INDENT# assert_equal ( 'p => h2' , read_style_map ( fileobj ) ) #NEWLINE# _assert_no_duplicates ( zip_file . _zip_file . namelist ( ) ) #NEWLINE# assert_equal ( expected_relationships_xml , _read_relationships_xml ( fileobj ) ) #NEWLINE# assert_equal ( expected_content_types_xml , _read_content_types_xml ( fileobj ) )