mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
470 B
15 lines
470 B
9 years ago
|
import pytest
|
||
|
from django.core.urlresolvers import reverse
|
||
|
|
||
|
|
||
|
@pytest.mark.parametrize('path_name', [
|
||
|
'/country/1/city stub_app:city_list',
|
||
|
'/country/1/city/create stub_app:city_create',
|
||
|
'/country/city/1 stub_app:city_detail',
|
||
|
'/country/city/1/edit stub_app:city_update',
|
||
|
'/country/city/1/delete stub_app:city_delete',
|
||
|
])
|
||
|
def test_reverse(path_name):
|
||
|
path, name = path_name.split()
|
||
|
assert path == reverse(name, args=(1,))
|