#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# class Annotation ( object ) : #NEWLINE# #INDENT# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# self . __dict__ . update ( kwargs ) #NEWLINE# #UNINDENT# #UNINDENT# slicedb = dict ( X = Annotation ( id = 'seq' , start = 0 , stop = 10 ) , Y = Annotation ( id = 'seq' , start = 0 , stop = 10 ) , Z = Annotation ( id = 'seq2' , start = 0 , stop = 10 ) ) #NEWLINE# sequence_dict = dict ( seq = Sequence ( 'ATGGGGCCGATTG' , 'seq' ) , seq2 = Sequence ( 'ATGGGGCCGATTG' , 'seq2' ) ) #NEWLINE# self . db = AnnotationDB ( self , sequence_dict ) #NEWLINE# self . annot = self . db [ 'X' ]