Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
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)
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)
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)