#NEWLINE# def test_attr( self ) : #NEWLINE# #INDENT# class Bag ( object ) : #NEWLINE# #INDENT# def __init__( self , **kw ) : #NEWLINE# #INDENT# self . __dict__ . update ( kw ) #NEWLINE# #UNINDENT# #UNINDENT# db = self . db #NEWLINE# ( a , b , c ) = ( db [ 'a' ] , db [ 'b' ] , db [ 'c' ] ) #NEWLINE# src_ival1 = Bag ( id = 'a' , start = 0 , stop = 8 , ori = 1 ) #NEWLINE# dst_ival1 = Bag ( id = 'b' , start = 0 , stop = 8 , ori = 1 ) #NEWLINE# src_ival2 = Bag ( id = 'a' , start = 12 , stop = 20 , ori = 1 ) #NEWLINE# dst_ival2 = Bag ( id = 'c' , start = 0 , stop = 8 , ori = 1 ) #NEWLINE# ivals = [ ( self , dst_ival1 ) , ( src_ival2 , dst_ival2 ) ] #NEWLINE# n = cnestedlist . NLMSA ( 'test' , mode = 'memory' , pairwiseMode = True ) #NEWLINE# cti = nlmsa_utils . CoordsToIntervals ( self . db , self . db ) #NEWLINE# n . add_aligned_intervals ( cti ( ivals ) ) #NEWLINE# n . build ( ) #NEWLINE# self . _check_results ( n )