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