def METHOD_NAME(self):
    seq1 = Sequence('ABC')
    seq2 = DNA('ACG')
    with self.assertRaisesRegex(TypeError,
                                r'Sequence.*does not match.*DNA'):
        hamming(seq1, seq2)