From 4f8b297462d79ffd86dc0d26ba1edbb63eb19cef Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Mar 2016 14:10:05 -0300 Subject: [PATCH] Make flake8 more happy --- channels/tests/test_routing.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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