def test_entry_point():
    """Test entry point."""
    app = Flask('testapp')

    assert not app.config.get('TESTVAR', False)
    InvenioConfigEntryPointModule(app)
    assert app.config.get('TESTVAR', False)
def test_entry_points_loading_order():
    """Test that entry points are loaded alphabetically ordered."""
    app = Flask('testapp')

    InvenioConfigEntryPointModule(app)
    assert app.config['TESTVAR'] == 'last'