#NEWLINE# def test03_setitem( self ) : #NEWLINE# #INDENT# 'Changing enumerated values using ``table.__setitem__()``.' #NEWLINE# tbl = self . h5file . create_table ( '/' , 'test' , self . _description ( ) , title = self . _getMethodName ( ) ) #NEWLINE# appended = [ ( 10 , self . valueInEnum ) , ( 20 , self . valueInEnum ) ] #NEWLINE# tbl . append ( appended ) #NEWLINE# written = [ ( 10 , self . valueInEnum ) , ( 20 , self . valueOutOfEnum ) ] #NEWLINE# tbl [ : ] = read #NEWLINE# tbl . flavor = 'python' #NEWLINE# read = tbl . read ( ) #NEWLINE# common . verbosePrint ( ( '* written value: %s\n* read value: %s\n' % ( written , read ) ) ) #NEWLINE# self . assertEqual ( written , read , 'Written and read values differ.' )