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