def test_mchoice_1(selenium_utils_user_1, runestone_db):
    su = selenium_utils_user_1
    db = runestone_db
    div_id = "test_mchoice_1"

    def mc_check_common_fields(index):
        return check_common_fields(su, db, db.mchoice_answers.div_id == div_id,
                                   index, div_id)

    test_assess.test_ma1(selenium_utils_user_1)
    assert mc_check_common_fields(0) == ("", False, None)

    test_assess.test_ma2(selenium_utils_user_1)
    assert mc_check_common_fields(1) == ("0,2", True, 1)
async def test_mchoice_1(selenium_utils_user_1, bookserver_session):
    div_id = "test_mchoice_1"

    async def mc_check_common_fields(index):
        return await check_common_fields(
            selenium_utils_user_1,
            bookserver_session,
            select(MchoiceAnswers).where(MchoiceAnswers.div_id == div_id),
            index,
            div_id,
        )

    test_assess.test_ma1(selenium_utils_user_1)
    assert await mc_check_common_fields(0) == ("", False, None)

    test_assess.test_ma2(selenium_utils_user_1)
    assert await mc_check_common_fields(1) == ("0,2", True, 1)