From 3cdf51ed847603a184cd4e94ac8769c5db3caa24 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Mar 2016 14:06:35 -0300 Subject: [PATCH] Better spacing in routing tests --- channels/tests/test_routing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/channels/tests/test_routing.py b/channels/tests/test_routing.py index 9a06008..bbfba7b 100644 --- a/channels/tests/test_routing.py +++ b/channels/tests/test_routing.py @@ -1,6 +1,5 @@ from __future__ import unicode_literals from django.test import SimpleTestCase -from django.utils import six from channels.routing import Router, route, include from channels.message import Message @@ -10,14 +9,18 @@ from channels.utils import name_that_thing # Fake consumers and routing sets that can be imported by string def consumer_1(): pass + def consumer_2(): pass + def consumer_3(): pass + chatroom_routing = [ route("websocket.connect", consumer_2, path=r"^/chat/(?P[^/]+)/$"), route("websocket.connect", consumer_3, path=r"^/mentions/$"), ] + chatroom_routing_noprefix = [ route("websocket.connect", consumer_2, path=r"/chat/(?P[^/]+)/$"), route("websocket.connect", consumer_3, path=r"/mentions/$"),