def test_illegal_error():
    try:
        builder.QRCodeBuilder('123', version=40, mode='numeric', error='R')
        raise Exception('Expected an error for illegal mode')
    except __HOLE__ as ex:
        ok_('R' in str(ex))
dataset/ETHPy150Open mnooner256/pyqrcode/tests/test_builder.py/test_illegal_error