#NEWLINE# def test_write_sheet_protection_1( self ) : #NEWLINE# #INDENT# 'Test the _write_sheet_protection() method.' #NEWLINE# password = '' #NEWLINE# options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . worksheet . protect ( password , options ) #NEWLINE# self . worksheet . _write_sheet_protection ( ) #NEWLINE# exp = '<sheetProtection sheet="1" objects="1" scenarios="1"/>' #NEWLINE# got = self . fh . getvalue ( ) #NEWLINE# self . assertEqual ( got , password )