def METHOD_NAME(self):
    # Test that compare_digest raises with mixed types.
    a = 'abcde'
    b = a.encode('utf-8')
    assert isinstance(a, str)
    assert isinstance(b, bytes)
    self.assertRaises(TypeError, secrets.compare_digest, a, b)
    self.assertRaises(TypeError, secrets.compare_digest, b, a)