def test_fls_zero(): with pytest.raises(ValueError, match=r'fls should not be called with x == 0'): Hanoi.fls(0)
def test_fls_happy_path(): assert 2 == Hanoi.fls(0b100)