#NEWLINE# def test_enum_default_persistence_black( self ) : #NEWLINE# #INDENT# dflt = 'black' #NEWLINE# atom = tables . EnumAtom ( self . enum , dflt , base = self . enumType , shape = ( ) ) #NEWLINE# self . h5file . create_earray ( '/' , 'test' , atom , shape = ( 0 , ) , title = self . _getMethodName ( ) ) #NEWLINE# self . _reopen ( ) #NEWLINE# self . assertEqual ( self . h5file . root . test . get_enum ( ) , self . enum , 'Enumerated type was not restored correctly from disk.' ) #NEWLINE# self . assertEqual ( self . h5file . root . test . atom . dflt , self . enum [ dflt ] , 'The default value of enumerated type was not restored correctly from disk.' )