<s> from tests . unit . cython . utils import cyimport , cythontest <EOL> bytesio_testhelper = cyimport ( '<STR_LIT>' ) <EOL> try : <EOL> import unittest2 as unittest <EOL> except ImportError : <EOL> import unittest <EOL> class BytesIOTest ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> @ cythontest <EOL> def test_reading ( self ) : <EOL> bytesio_testhelper . test_read1 ( self . assertEqual , self . assertRaises ) <EOL> bytesio_testhelper . test_read2 ( self . assertEqual , self . assertRaises ) <EOL> bytesio_testhelper . test_read3 ( self . assertEqual , self . assertRaises ) <EOL> @ cythontest <EOL> def test_reading_error ( self ) : <EOL> bytesio_testhelper . test_read_eof ( self . assertEqual , self . assertRaises ) </s>
