#NEWLINE# def test_write_cell_number( self ) : #NEWLINE# #INDENT# 'Test the _write_cell() method for numbers.' #NEWLINE# cell_tuple = namedtuple ( 'Number' , 'number, format' ) #NEWLINE# cell = cell_tuple ( 1 , None ) #NEWLINE# self . worksheet . _write_cell ( 0 , 0 , cell_tuple ) #NEWLINE# exp = '<c r="A1"><v>1</v></c>' #NEWLINE# got = self . fh . getvalue ( ) #NEWLINE# self . assertEqual ( got , exp )