Esempio n. 1
0
def test_umap_include():
    assert check_url('included', urls.included_patterns) is True
Esempio n. 2
0
def test_fn_based_view_url_created():
    assert check_url('fn-based') is True
Esempio n. 3
0
def test_view_url_not_exists():
    assert check_url('not-exists') is False
Esempio n. 4
0
def test_umap_namespace():
    assert check_url('namespaced', urls.mock_patterns) is True
Esempio n. 5
0
def test_fn_based_view_url_created():
    assert check_url('fn-based') is True
Esempio n. 6
0
def test_class_based_view_url_created():
    assert check_url('class-based') is True
Esempio n. 7
0
def test_umap_include():
    assert check_url('included', urls.included_patterns) is True
Esempio n. 8
0
def test_umap_namespace():
    assert check_url('namespaced', urls.mock_patterns) is True
Esempio n. 9
0
def test_view_url_not_exists():
    assert check_url('not-exists') is False
Esempio n. 10
0
def test_class_based_view_url_created():
    assert check_url('class-based') is True
Esempio 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