def test_expected_profile_url(request, app, entity):
    url = profile_url_for(entity)
    if app.user_mode == 'single':
        assert url == '/profile'
    elif app.user_mode == 'multiple':
        assert url == '/' + entity.name + '/profile'
    elif app.user_mode == 'subdomain':
        assert url == 'http://{}.example.com/profile'.format(entity.name)
Returns:
dataset/ETHPy150Open pytent/pytentd/tentd/tests/test_app.py/test_expected_profile_url--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/featuredgames.py/Ban.champion