Exemplo n.º 1
0
def test_umap_include():
    assert check_url('included', urls.included_patterns) is True
Exemplo n.º 2
0
def test_fn_based_view_url_created():
    assert check_url('fn-based') is True
Exemplo n.º 3
0
def test_view_url_not_exists():
    assert check_url('not-exists') is False
Exemplo n.º 4
0
def test_umap_namespace():
    assert check_url('namespaced', urls.mock_patterns) is True
Exemplo n.º 5
0
def test_fn_based_view_url_created():
    assert check_url('fn-based') is True
Exemplo n.º 6
0
def test_class_based_view_url_created():
    assert check_url('class-based') is True
Exemplo n.º 7
0
def test_umap_include():
    assert check_url('included', urls.included_patterns) is True
Exemplo n.º 8
0
def test_umap_namespace():
    assert check_url('namespaced', urls.mock_patterns) is True
Exemplo n.º 9
0
def test_view_url_not_exists():
    assert check_url('not-exists') is False
Exemplo n.º 10
0
def test_class_based_view_url_created():
    assert check_url('class-based') is True
Exemplo n.º 11
0
def test_create_uconf():
    fn_based = uconf(namespace='mock')
    fn_based('^fn-based/', name='fn-based')(views.fn_based_view)
    assert check_url('fn-based', urls.mock_patterns) is True