#NEWLINE# def test_repr( self ) : #NEWLINE# #INDENT# for seq in ( DNA ( '' ) , RNA ( '' ) ) : #NEWLINE# #INDENT# obs = repr ( seq ) #NEWLINE# self . assertIn ( 'has gaps: False' , obs ) #NEWLINE# self . assertIn ( 'GC-content: 0.00%' , obs ) #NEWLINE# #UNINDENT# for seq in ( DNA ( 'ACGT' ) , RNA ( 'ACGU' ) ) : #NEWLINE# #INDENT# obs = repr ( seq ) #NEWLINE# self . assertIn ( 'has gaps: False' , obs ) #NEWLINE# self . assertIn ( 'GC-content: 50.00%' , obs ) #NEWLINE# #UNINDENT# for seq in ( DNA ( 'CST' ) , RNA ( 'CSU' ) ) : #NEWLINE# #INDENT# obs = repr ( seq ) #NEWLINE# self . assertIn ( 'has gaps: False' , obs ) #NEWLINE# self . assertIn ( 'GC-content: 66.67%' , obs ) #NEWLINE# #UNINDENT# for seq in ( DNA ( 'GCSSCG' ) , RNA ( 'GCSSCG' ) ) : #NEWLINE# #INDENT# obs = repr ( seq ) #NEWLINE# self . assertIn ( 'has gaps: False' , obs ) #NEWLINE# self . assertIn ( 'GC-content: 100.00%' , obs ) #NEWLINE# #UNINDENT# for seq in ( DNA ( '-GCSSCG.' ) , RNA ( '-GCSSCG.' ) ) : #NEWLINE# #INDENT# obs = repr ( seq ) #NEWLINE# self . assertIn ( 'has gaps: True' , obs ) #NEWLINE# self . assertIn ( 'GC-content: 100.00%' , obs )