def test_gcm_dec_badassoc(aesenc):
    aes, enc, ciphertext, tag = aesenc

    dec = aes.dec(key=b"A"*16, iv=b"A"*16)
    dec.update_associated(b"H4llo")
    plaintext = dec.update(ciphertext)

    dec.set_tag(tag)

    with pytest.raises(Exception) as excinfo:
        dec.finalize()
    assert str(excinfo.value) in "Cipher"
dataset/ETHPy150Open gdanezis/petlib/petlib/cipher.py/test_gcm_dec_badassoc/swapped operands of `in`