#NEWLINE# def test_seq_read_write_other( self ) : #NEWLINE# #INDENT# b = VecBuf ( ) #NEWLINE# fl = flatten #NEWLINE# b . write_seq ( [ 'ab' , 'cd' , '' , 'ef' , 'gh' , 'ij' ] ) #NEWLINE# self . assertMatches ( b . read ( 0 ) , '' ) #NEWLINE# self . assertMatches ( b . read ( 1 ) , 'a' ) #NEWLINE# self . assertMatches ( b . read ( 2 ) , 'bc' ) #NEWLINE# b2 = VecBuf ( ) #NEWLINE# b2 . write_seq ( b . read_seq ( 6 ) ) #NEWLINE# self . assertMatches ( b . read ( 1 ) , 'j' ) #NEWLINE# self . assertRaises ( VecBufEOB , b . read , 1 ) #NEWLINE# self . assertMatches ( b2 . read ( 6 ) , 'defghi' ) #NEWLINE# self . assertRaises ( VecBufEOB , fl . read , 1 )