#NEWLINE# def test_write_sheet3( self ) : #NEWLINE# #INDENT# 'Test the _write_sheet() method' #NEWLINE# self . workbook . _write_sheet ( 'Bits & Bobs' , 1 , 0 ) #NEWLINE# exp = '<sheet name="Bits &amp; Bobs" sheetId="1" r:id="rId1"/>' #NEWLINE# got = self . fh . getvalue ( ) #NEWLINE# self . assertEqual ( got , exp )