def test_challenges_model_access_plugin_class():
    """
    Test that the Challenges model can access its plugin class
    """
    app = create_ctfd()

    with app.app_context():
        from CTFd.plugins.challenges import get_chal_class

        chal = gen_challenge(app.db)
        assert chal.plugin_class == get_chal_class("standard")
    destroy_ctfd(app)

    Test that the Challenges model can access its plugin class
    
tests/test_plugin_utils.py