def test_illegal_mode():
    try:
        builder.QRCodeBuilder('test', 1, mode='murks', error='M')
        raise Exception('Expected an error for illegal mode')
    except __HOLE__ as ex:
        ok_('murks' in str(ex))
dataset/ETHPy150Open mnooner256/pyqrcode/tests/test_builder.py/test_illegal_mode