#NEWLINE# def testBedRegion( self ) : #NEWLINE# #INDENT# valid = [ 'chr1|100|150' ] #NEWLINE# regions = [ ( '%s|%s|%s' % ( x . chrom , x . start , x . end ) ) for x in BedFile ( region = 'chr1:101-150' ) ] #NEWLINE# self . assertTrue ( _matches ( valid , valid ) )