<s> import os <EOL> import unittest <EOL> from avro import io <EOL> from avro import datafile <EOL> class TestDataFileInterop ( unittest . TestCase ) : <EOL> def test_interop ( self ) : <EOL> print '<STR_LIT>' <EOL> print '<STR_LIT>' <EOL> print '<STR_LIT>' <EOL> print '<STR_LIT>' <EOL> for f in os . listdir ( '<STR_LIT>' ) : <EOL> print '<STR_LIT>' % f <EOL> print '<STR_LIT>' <EOL> reader = open ( os . path . join ( '<STR_LIT>' , f ) , '<STR_LIT:rb>' ) <EOL> datum_reader = io . DatumReader ( ) <EOL> dfr = datafile . DataFileReader ( reader , datum_reader ) <EOL> for datum in dfr : <EOL> assert datum is not None <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
