'Tests that the router reports channels to listen on correctly'

def test_channels(self):

    router = Router([route(u'http.request', consumer_1, path=u'^/chat/$'), route(u'http.disconnect', consumer_2), route(u'http.request', consumer_3), route_class(TestClassConsumer)])
    self.assertEqual(router.channels, {u'http.request', u'http.disconnect', u'test.channel'})
    router.add_route(route(u'websocket.receive', consumer_1))
    self.assertEqual(router.channels, {u'http.request', u'http.disconnect', u'websocket.receive', u'test.channel'})
