def test_cmp():
    assert secure_compare(b"Hello", b"Hello")
    assert not secure_compare(b"Hello", b"Hellx")
    assert not secure_compare(b"Hello", b"Hell")

    with pytest.raises(Exception) as excinfo:
        assert not secure_compare(b"Hello", 2)
    assert str(excinfo.value) in 'HMAC'
dataset/ETHPy150Open gdanezis/petlib/petlib/hmac.py/test_cmp/swapped operands of `in`