#NEWLINE# def test_read_tag( ) : #NEWLINE# #INDENT# str_io = BytesIO ( ) #NEWLINE# r = _make_readerlike ( str_io ) #NEWLINE# c_reader = m5u . VarReader5 ( r ) #NEWLINE# assert_raises ( IOError , tag . read_tag ) #NEWLINE# tag = _make_tag ( 'i4' , 1 , mio5p . miINT32 , sde = True ) #NEWLINE# tag [ 'byte_count' ] = 5 #NEWLINE# _write_stream ( str_io , tag . tostring ( ) ) #NEWLINE# assert_raises ( ValueError , c_reader . read_tag )