def METHOD_NAME(turing_machine):
    with pytest.raises(ValueError, match=r"1") as e:
        turing_machine.length = 1
    with pytest.raises(ValueError, match=r"" + str(DEFAULT_BIT_COUNT + 1)) as e:
        turing_machine.length = DEFAULT_BIT_COUNT + 1