# Path: sitegate/toolbox.py
# def get_sitegate_urls() -> list:
#     """Returns sitegate urlpatterns, that can be attached
#     to urlpatterns of a project:
# 
#         # Example from urls.py.
# 
#         from sitegate.toolbox import get_sitegate_urls
# 
#         urlpatterns = patterns('',
#             ...
#             path('login/', 'apps.views.login', name='login'),
#             ...
#         ) + get_sitegate_urls()  # Attach.
# 
#     """
#     urls = [
#         re_path(r'^verify_email/(?P<code>\S+)/$', verify_email, name='verify_email'),
#         re_path(r'^rauth/(?P<alias>\S+)/start/$', remote_auth_start, name='remote_auth_start'),
#         re_path(r'^rauth/(?P<alias>\S+)/$', remote_auth, name='remote_auth'),
#     ]
#     return urls


from django.urls import URLPattern
from sitegate.toolbox import get_sitegate_urls



def test_get_sitegate_urls():
    urls = get_sitegate_urls()
    assert isinstance(urls, list)

# Path: sitegate/toolbox.py
# def get_sitegate_urls() -> list:
#     """Returns sitegate urlpatterns, that can be attached
#     to urlpatterns of a project:
# 
#         # Example from urls.py.
# 
#         from sitegate.toolbox import get_sitegate_urls
# 
#         urlpatterns = patterns('',
#             ...
#             path('login/', 'apps.views.login', name='login'),
#             ...
#         ) + get_sitegate_urls()  # Attach.
# 
#     """
#     urls = [
#         re_path(r'^verify_email/(?P<code>\S+)/$', verify_email, name='verify_email'),
#         re_path(r'^rauth/(?P<alias>\S+)/start/$', remote_auth_start, name='remote_auth_start'),
#         re_path(r'^rauth/(?P<alias>\S+)/$', remote_auth, name='remote_auth'),
#     ]
#     return urls


# Path: sitegate/tests/test_toolbox.py
from django.urls import URLPattern
from sitegate.toolbox import get_sitegate_urls




def test_get_sitegate_urls():
    urls = get_sitegate_urls()
    assert isinstance(urls, list)

    assert len(urls) == 3