def test_and_with_ok_err(): x = Ok(2) y = Err(Exception('late')) assert x.and_(y) == Err(Exception('late'))
def test_and_with_ok_ok(): x = Ok(2) y = Ok(3) assert x.and_(y) == Ok(3)