def test_umap_include(): assert check_url('included', urls.included_patterns) is True
def test_fn_based_view_url_created(): assert check_url('fn-based') is True
def test_view_url_not_exists(): assert check_url('not-exists') is False
def test_umap_namespace(): assert check_url('namespaced', urls.mock_patterns) is True
def test_class_based_view_url_created(): assert check_url('class-based') is True
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