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.
20 lines
663 B
20 lines
663 B
9 years ago
|
import pytest
|
||
9 years ago
|
from django.core.urlresolvers import reverse
|
||
9 years ago
|
|
||
|
|
||
9 years ago
|
@pytest.mark.parametrize("test_input,kwargs,expected", [
|
||
|
('materia:relatoria_edit',
|
||
|
{'pk': '11', 'id': '99'},
|
||
|
'/materia/11/relatoria/99/edit'),
|
||
|
('materia:tramitacao_edit',
|
||
|
{'pk': '3', 'id': '8'},
|
||
|
'/materia/3/tramitacao/8/edit'),
|
||
|
('materia:adicionar_proposicao', {}, '/materia/proposicao'),
|
||
|
('materia:editar_proposicao',
|
||
|
{'pk': '3'},
|
||
|
'/materia/proposicao/3/edit'),
|
||
|
('materia:list_proposicao', {}, '/materia/proposicao_list'),
|
||
|
])
|
||
|
def test_reverse(test_input, kwargs, expected):
|
||
|
assert reverse(test_input, kwargs=kwargs) == expected
|