#NEWLINE# def test_is_reverse_complement_type_mismatch( self ) : #NEWLINE# #INDENT# for Class in ( DNA , RNA ) : #NEWLINE# #INDENT# class DifferentSequenceClass ( GrammaredSequence ) : #NEWLINE# #INDENT# @ classproperty #NEWLINE# def degenerate_map( cls ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'X' : set ( 'AB' ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# @ classproperty #NEWLINE# def definite_chars( cls ) : #NEWLINE# #INDENT# return set ( 'ABC' ) #NEWLINE# #UNINDENT# @ classproperty #NEWLINE# def default_gap_char( cls ) : #NEWLINE# #INDENT# return '-' #NEWLINE# #UNINDENT# @ classproperty #NEWLINE# def gap_chars( cls ) : #NEWLINE# #INDENT# return set ( '-.' ) #NEWLINE# #UNINDENT# #UNINDENT# seq1 = Class ( 'ABC' ) #NEWLINE# seq2 = DifferentSequenceClass ( 'ABC' ) #NEWLINE# with self . assertRaisesRegex ( TypeError , 'Cannot use.*and DifferentSequenceClass together' ) : #NEWLINE# #INDENT# seq1 . is_reverse_complement ( seq2 )