def test_calculate_vehicle_status_score_without_vehicle_should_be_ineligible():
    profile = {
        "age": 35,
        "dependents": 2,
        "income": 201000,
        "marital_status": "single",
        "risk_questions": [0, 1, 0],
    }

    rp_service = RiskProfileService(profile)
    score = rp_service.calculate_vehicle_score()

    assert score == {"auto": 0, "disability": 0, "home": 0, "life": 0}
    assert rp_service.risk_profile == {
        "auto": "ineligible",
        "disability": "economic",
        "home": "economic",
        "life": "economic"
    }
def test_calculate_vehicle_status_score_new_vehicle_should_add_one_auto():
    profile = {
        "age": 35,
        "dependents": 2,
        "income": 201000,
        "marital_status": "single",
        "risk_questions": [0, 1, 0],
        "vehicle": {
            "year": datetime.now().year - 1
        }
    }

    rp_service = RiskProfileService(profile)
    score = rp_service.calculate_vehicle_score()

    assert score == {"auto": 1, "disability": 0, "home": 0, "life": 0}
    assert rp_service.risk_profile == {
        "auto": "economic",
        "disability": "economic",
        "home": "economic",
        "life": "economic"
    }