How to use the muffin.urls.parse function in muffin

To help you get started, we’ve selected a few muffin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github klen / muffin / tests / test_urls.py View on Github external
def test_parse():
    from muffin.urls import parse, RETYPE

    assert isinstance(parse('/'), str)
    assert isinstance(parse('/test.jpg'), str)
    assert isinstance(parse(r'/{foo}/'), str)
    assert isinstance(parse(r'/{foo:\d+}/'), RETYPE)
    assert isinstance(parse(r'/{foo}/?'), RETYPE)
github klen / muffin / tests / test_urls.py View on Github external
def test_parse():
    from muffin.urls import parse, RETYPE

    assert isinstance(parse('/'), str)
    assert isinstance(parse('/test.jpg'), str)
    assert isinstance(parse(r'/{foo}/'), str)
    assert isinstance(parse(r'/{foo:\d+}/'), RETYPE)
    assert isinstance(parse(r'/{foo}/?'), RETYPE)
github klen / muffin / tests / test_urls.py View on Github external
def test_parse():
    from muffin.urls import parse, RETYPE

    assert isinstance(parse('/'), str)
    assert isinstance(parse('/test.jpg'), str)
    assert isinstance(parse(r'/{foo}/'), str)
    assert isinstance(parse(r'/{foo:\d+}/'), RETYPE)
    assert isinstance(parse(r'/{foo}/?'), RETYPE)
github klen / muffin / tests / test_urls.py View on Github external
def test_parse():
    from muffin.urls import parse, RETYPE

    assert isinstance(parse('/'), str)
    assert isinstance(parse('/test.jpg'), str)
    assert isinstance(parse(r'/{foo}/'), str)
    assert isinstance(parse(r'/{foo:\d+}/'), RETYPE)
    assert isinstance(parse(r'/{foo}/?'), RETYPE)
github klen / muffin / tests / test_urls.py View on Github external
def test_parse():
    from muffin.urls import parse, RETYPE

    assert isinstance(parse('/'), str)
    assert isinstance(parse('/test.jpg'), str)
    assert isinstance(parse(r'/{foo}/'), str)
    assert isinstance(parse(r'/{foo:\d+}/'), RETYPE)
    assert isinstance(parse(r'/{foo}/?'), RETYPE)