#NEWLINE# def test_extraData( self ) : #NEWLINE# #INDENT# "\n        readfile() should skip over 'extra' data present in the zip metadata.\n        " #NEWLINE# fn = self . mktemp ( ) #NEWLINE# zf = zipfile . ZipFile ( fn , 'w' ) #NEWLINE# zi = zipfile . ZipInfo ( '0' ) #NEWLINE# zi . extra = 'hello, extra' #NEWLINE# zf . writestr ( zi , 'the real data' ) #NEWLINE# zf . close ( ) #NEWLINE# czf = zipstream . ChunkingZipFile ( fn ) #NEWLINE# self . assertEqual ( czf . readfile ( '0' ) . read ( ) , 'the real data' )