def delegate_Bool2Long(space, w_bool): return W_LongObject(rbigint.frombool(space.is_true(w_bool)))
def test_frombool(self): assert rbigint.frombool(False).tolong() == 0 assert rbigint.frombool(True).tolong() == 1