<s> '''<STR_LIT>''' <EOL> import unittest <EOL> import StringIO <EOL> import ngsutils . bed . stats <EOL> from ngsutils . bed import BedFile <EOL> bedtest = BedFile ( fileobj = StringIO . StringIO ( '''<STR_LIT>''' . replace ( '<STR_LIT:|>' , '<STR_LIT:\t>' ) ) ) <EOL> class StatsTest ( unittest . TestCase ) : <EOL> def testBedStats ( self ) : <EOL> stats = ngsutils . bed . stats . BedStats ( bedtest ) <EOL> self . assertEqual ( stats . total , <NUM_LIT:5> ) <EOL> self . assertEqual ( stats . size , <NUM_LIT> ) <EOL> self . assertEqual ( stats . lengths . mean ( ) , <NUM_LIT> ) <EOL> self . assertEqual ( stats . refs [ '<STR_LIT>' ] , <NUM_LIT:5> ) <EOL> def testBedStatsGTF ( self ) : <EOL> '''<STR_LIT>''' <EOL> pass <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
