diff --git a/channels/tests/test_routing.py b/channels/tests/test_routing.py index bbfba7b..15c92b9 100644 --- a/channels/tests/test_routing.py +++ b/channels/tests/test_routing.py @@ -10,12 +10,15 @@ from channels.utils import name_that_thing 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/$"), @@ -32,14 +35,6 @@ class RoutingTests(SimpleTestCase): Tests that the router's routing code works correctly. """ - # Fake consumers we can test for with the == operator - def consumer_1(self): - pass - def consumer_2(self): - pass - def consumer_3(self): - pass - def assertRoute(self, router, channel, content, consumer, kwargs=None): """ Asserts that asking the `router` to route the `content` as a message