def METHOD_NAME(
    mailoutbox, mocker, user, is_active, inquiry_exists, should_verify
):  # pylint: disable=too-many-arguments
    """Assert that the user is verified only if they already haven't been"""
    user.is_active = is_active
    if inquiry_exists:
        ExportsInquiryLogFactory.create(user=user)
    mock_api = mocker.patch("authentication.pipeline.compliance.api")
    mock_api.verify_user_with_exports.return_value = mocker.Mock(
        is_denied=False, is_unknown=False
    )
    assert compliance.verify_exports_compliance(None, None, user=user) == {}
    if should_verify:
        mock_api.verify_user_with_exports.assert_called_once_with(user)
    assert len(mailoutbox) == 0